]> Dogcows Code - chaz/tint2/blobdiff - src/tint.c
*fix* use copied data for task icons on 64bit
[chaz/tint2] / src / tint.c
index f1de4772a583d21e83efda144ab86a03c91c55ff..a64f92f0d1a39245d29ec8e2125fd11937d2e5c2 100644 (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:
@@ -526,6 +517,9 @@ void event_property_notify (XEvent *e)
                                panel_refresh = 1;
                        }
                }
+// We do not check for the iconified state, since it only unsets our active window
+// but in openbox a shaded window is considered iconified. So we would loose the active window
+// property on unshading it again (commented 01.10.2009)
 //             else if (at == server.atom.WM_STATE) {
 //                     // Iconic state
 //                     // TODO : try to delete following code
This page took 0.023621 seconds and 4 git commands to generate.