mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
fixed memory leaks and crash with deminiaturization
This commit is contained in:
@@ -653,6 +653,7 @@ handleButtonPress(XEvent *event)
|
||||
}
|
||||
#endif /* !LITE */
|
||||
|
||||
desc = NULL;
|
||||
if (XFindContext(dpy, event->xbutton.subwindow, wWinContext,
|
||||
(XPointer *)&desc)==XCNOENT) {
|
||||
if (XFindContext(dpy, event->xbutton.window, wWinContext,
|
||||
@@ -661,10 +662,6 @@ handleButtonPress(XEvent *event)
|
||||
}
|
||||
}
|
||||
|
||||
if (desc->handle_mousedown!=NULL) {
|
||||
(*desc->handle_mousedown)(desc, event);
|
||||
}
|
||||
|
||||
if (desc->parent_type == WCLASS_WINDOW) {
|
||||
XSync(dpy, 0);
|
||||
|
||||
@@ -689,6 +686,10 @@ handleButtonPress(XEvent *event)
|
||||
}
|
||||
}
|
||||
|
||||
if (desc->handle_mousedown!=NULL) {
|
||||
(*desc->handle_mousedown)(desc, event);
|
||||
}
|
||||
|
||||
/* save double-click information */
|
||||
if (scr->flags.next_click_is_not_double) {
|
||||
scr->flags.next_click_is_not_double = 0;
|
||||
|
||||
Reference in New Issue
Block a user