]> Dogcows Code - chaz/tint2/commitdiff
*fix* even better XSelectInput on traywindows. It's inside the block, where we listen...
authorAndreas Fink <andreas.fink85@googlemail.com>
Sun, 22 May 2011 08:25:40 +0000 (08:25 +0000)
committerAndreas Fink <andreas.fink85@googlemail.com>
Sun, 22 May 2011 08:25:40 +0000 (08:25 +0000)
src/systray/systraybar.c

index 8a92a0452ff8d083596ff8632986bc4ebf3ef0b6..e7e413f58862ee03cd51f1656694be057026421d 100644 (file)
@@ -354,9 +354,6 @@ gboolean add_icon(Window id)
        Panel *panel = systray.area.panel;
        int hide = 0;
 
-       // watch for the icon trying to resize itself / closing again!
-       XSelectInput(server.dsp, id, StructureNotifyMask);
-
        error = FALSE;
        XWindowAttributes attr;
        if ( XGetWindowAttributes(server.dsp, id, &attr) == False ) return FALSE;
@@ -380,6 +377,8 @@ gboolean add_icon(Window id)
        parent_window = XCreateWindow(server.dsp, panel->main_win, 0, 0, 30, 30, 0, attr.depth, InputOutput, visual, mask, &set_attr);
        old = XSetErrorHandler(window_error_handler);
        XReparentWindow(server.dsp, id, parent_window, 0, 0);
+       // watch for the icon trying to resize itself / closing again!
+       XSelectInput(server.dsp, id, StructureNotifyMask);
        XSync(server.dsp, False);
        XSetErrorHandler(old);
        if (error != FALSE) {
This page took 0.020223 seconds and 4 git commands to generate.