mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58:08 +01:00
*** empty log message ***
This commit is contained in:
@@ -759,6 +759,14 @@ appIconMouseDown(WObjDescriptor *desc, XEvent *event)
|
|||||||
if (!wapp)
|
if (!wapp)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (event->xbutton.send_event &&
|
||||||
|
XGrabPointer(dpy, aicon->icon->core->window, True, ButtonMotionMask
|
||||||
|
|ButtonReleaseMask|ButtonPressMask, GrabModeAsync,
|
||||||
|
GrabModeAsync, None, None, CurrentTime) !=GrabSuccess) {
|
||||||
|
wwarning("pointer grab failed for appicon menu");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
openApplicationMenu(wapp, event->xbutton.x_root,
|
openApplicationMenu(wapp, event->xbutton.x_root,
|
||||||
event->xbutton.y_root);
|
event->xbutton.y_root);
|
||||||
|
|
||||||
|
|||||||
@@ -4130,6 +4130,14 @@ iconMouseDown(WObjDescriptor *desc, XEvent *event)
|
|||||||
(event->xbutton.state & ShiftMask) && aicon!=scr->clip_icon) {
|
(event->xbutton.state & ShiftMask) && aicon!=scr->clip_icon) {
|
||||||
wClipMakeIconOmnipresent(aicon, !aicon->omnipresent);
|
wClipMakeIconOmnipresent(aicon, !aicon->omnipresent);
|
||||||
} else if (event->xbutton.button == Button3) {
|
} else if (event->xbutton.button == Button3) {
|
||||||
|
if (event->xbutton.send_event &&
|
||||||
|
XGrabPointer(dpy, aicon->icon->core->window, True, ButtonMotionMask
|
||||||
|
|ButtonReleaseMask|ButtonPressMask, GrabModeAsync,
|
||||||
|
GrabModeAsync, None, None, CurrentTime) !=GrabSuccess) {
|
||||||
|
wwarning("pointer grab failed for dockicon menu");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
openDockMenu(dock, aicon, event);
|
openDockMenu(dock, aicon, event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
10
src/event.c
10
src/event.c
@@ -1380,14 +1380,16 @@ doWindozeCycle(WWindow *wwin, XEvent *event, Bool next)
|
|||||||
}
|
}
|
||||||
XFree(keymap);
|
XFree(keymap);
|
||||||
|
|
||||||
/* restore order */
|
|
||||||
CommitStacking(scr);
|
|
||||||
|
|
||||||
XUngrabKeyboard(dpy, CurrentTime);
|
XUngrabKeyboard(dpy, CurrentTime);
|
||||||
wSetFocusTo(scr, newFocused);
|
wSetFocusTo(scr, newFocused);
|
||||||
|
|
||||||
if (wPreferences.circ_raise)
|
if (wPreferences.circ_raise) {
|
||||||
wRaiseFrame(newFocused->frame->core);
|
wRaiseFrame(newFocused->frame->core);
|
||||||
|
CommitStacking(scr);
|
||||||
|
} else {
|
||||||
|
/* restore order */
|
||||||
|
CommitStacking(scr);
|
||||||
|
}
|
||||||
|
|
||||||
scr->flags.doing_alt_tab = 0;
|
scr->flags.doing_alt_tab = 0;
|
||||||
if (openedSwitchMenu)
|
if (openedSwitchMenu)
|
||||||
|
|||||||
Reference in New Issue
Block a user