openbox.grab();
if (! validateClient()) return;
+ if (flags.moving)
+ endMove();
+
XChangeSaveSet(display, client.window, SetModeDelete);
XSelectInput(display, client.window, NoEventMask);
void OpenboxWindow::destroyNotifyEvent(XDestroyWindowEvent *de) {
if (de->window == client.window) {
+ if (flags.moving)
+ endMove();
XUnmapWindow(display, frame.window);
delete this;
ASSERT(!flags.moving);
// make sure only one window is moving at a time
- OpenboxWindow *w;
- if ((w = openbox.getMaskedWindow()) != (OpenboxWindow *) 0 &&
- w->flags.moving)
+ OpenboxWindow *w = openbox.getMaskedWindow();
+ if (w != (OpenboxWindow *) 0 && w->flags.moving)
w->endMove();
XGrabPointer(display, frame.window, False, PointerMotionMask |