Fix regression in rendering the Window-Motion-Outline Commit 79fe2fca1de5140f538e68f6981b27cf7f917e7a checks for pending motion events and drops out of the FluxboxWindow::motionNotifyEvent() function early if so. When the user does not use the opaque window movement method an outline will be drawn to the screen. That outline was not cleaned correctly with commit 79..
Mathias Gumz akira at fluxbox dot org
1 files changed,
6 insertions(+),
4 deletions(-)
jump to
M
src/Window.cc
→
src/Window.cc
@@ -2394,7 +2394,13 @@ // to activate it before doing the actual motionNotify code
Fluxbox::instance()->keys()->doAction(me.type, me.state, m_last_pressed_button, context, &winClient(), me.time); if (moving) { + XEvent e; + + if (XCheckTypedEvent(display, MotionNotify, &e)) { + XPutBackEvent(display, &e); + return; + } // Warp to next or previous workspace?, must have moved sideways some int moved_x = me.x_root - m_last_resize_x;@@ -2456,10 +2462,6 @@ // dx = current left side, dy = current top
doSnapping(dx, dy); // do not update display if another motion event is already pending - if (XCheckTypedEvent(display, MotionNotify, &e)) { - XPutBackEvent(display, &e); - return; - } if (!screen().doOpaqueMove()) { parent().drawRectangle(screen().rootTheme()->opGC(),