summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Ramsay <i.am@jimramsay.com>2009-01-30 15:54:04 (GMT)
committerJim Ramsay <i.am@jimramsay.com>2009-02-27 20:18:08 (GMT)
commit54c1ac8704c2ad81a597547912bdbf5cbf7967d9 (patch)
tree1fe28afd4682d3f284ed0de65e7377fb4b0b1d89
parent8a7879913ba7169224e18db81888a49e732c1819 (diff)
downloadfluxbox_lack-54c1ac8704c2ad81a597547912bdbf5cbf7967d9.zip
fluxbox_lack-54c1ac8704c2ad81a597547912bdbf5cbf7967d9.tar.bz2
Ignore EnterNotify on Move or Resize
Moving and Resizing windows can reveal other windows, which of course can change unexpected focus changes in focus-follows-mouse.
-rw-r--r--src/Window.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 35d9b80..1104e50 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1211,6 +1211,9 @@ void FluxboxWindow::moveResize(int new_x, int new_y,
1211 if (!moving) { 1211 if (!moving) {
1212 m_last_resize_x = new_x; 1212 m_last_resize_x = new_x;
1213 m_last_resize_y = new_y; 1213 m_last_resize_y = new_y;
1214
1215 /* Ignore all EnterNotify events until the pointer actually moves */
1216 screen().focusControl().ignoreAtPointer();
1214 } 1217 }
1215 1218
1216} 1219}