fixed WM menu management

git-svn-id: http://tint2.googlecode.com/svn/trunk@213 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2009-10-16 18:46:09 +00:00
parent 0867ce743c
commit f626291e76
4 changed files with 3 additions and 12 deletions

View File

@@ -270,7 +270,6 @@ void event_button_press (XEvent *e)
if (wm_menu && !task_drag && !click_clock(panel, e->xbutton.x, e->xbutton.y) && (e->xbutton.button != 1) ) {
// forward the click to the desktop window (thanks conky)
wm_menu_open = 1;
XUngrabPointer(server.dsp, e->xbutton.time);
e->xbutton.window = server.root_win;
// icewm doesn't open under the mouse.
@@ -292,14 +291,6 @@ void event_button_release (XEvent *e)
Panel *panel = get_panel(e->xany.window);
if (!panel) return;
if (wm_menu && wm_menu_open) {
// forward the click to the desktop window (thanks conky)
wm_menu_open = 0;
e->xbutton.window = server.root_win;
XSendEvent(server.dsp, e->xbutton.window, False, ButtonReleaseMask, e);
return;
}
int action = TOGGLE_ICONIFY;
switch (e->xbutton.button) {
case 2: