From cd3379270b388cbfe5040d43a4c90f976c06e1b7 Mon Sep 17 00:00:00 2001 From: rathnor Date: Sun, 4 May 2003 13:55:39 +0000 Subject: fix warping with multiple screens --- ChangeLog | 2 ++ src/Window.cc | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6c51c1f..698b9bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ (Format: Year/Month/Day) Changes for 0.9.2: *03/05/04: + * Fix warping with multiple screens (Simon) + Window.cc * Set many key events/commands to act on the screen the mouse is on, rather than the focused window (Simon) fluxbox.cc diff --git a/src/Window.cc b/src/Window.cc index 33bf9bc..fb7b169 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.156 2003/05/01 13:19:36 rathnor Exp $ +// $Id: Window.cc,v 1.157 2003/05/04 13:55:39 rathnor Exp $ #include "Window.hh" @@ -2273,7 +2273,7 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent &me) { if (! isMoving()) { startMoving(me.window); - } else { + } else { int dx = me.x_root - button_grab_x, dy = me.y_root - button_grab_y; @@ -2627,7 +2627,7 @@ void FluxboxWindow::startMoving(Window win) { // freely map and unmap the window we're moving. XGrabPointer(display, screen.getRootWindow(), False, Button1MotionMask | ButtonReleaseMask, GrabModeAsync, GrabModeAsync, - None, fluxbox->getMoveCursor(), CurrentTime); + screen.getRootWindow(), fluxbox->getMoveCursor(), CurrentTime); if (m_windowmenu.isVisible()) m_windowmenu.hide(); -- cgit v0.11.2