From 54c1ac8704c2ad81a597547912bdbf5cbf7967d9 Mon Sep 17 00:00:00 2001 From: Jim Ramsay Date: Fri, 30 Jan 2009 10:54:04 -0500 Subject: 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. --- src/Window.cc | 3 +++ 1 file changed, 3 insertions(+) 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, if (!moving) { m_last_resize_x = new_x; m_last_resize_y = new_y; + + /* Ignore all EnterNotify events until the pointer actually moves */ + screen().focusControl().ignoreAtPointer(); } } -- cgit v0.11.2