summaryrefslogtreecommitdiffstats
path: root/x11/gnomeapplets2/files/patch-stickynotes_stickynotes_applet_callbacks.c
blob: 718f52a0dd673c10801f7017377b854fe7b2151f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- stickynotes/stickynotes_applet_callbacks.c.orig Wed Jul 13 18:57:03 2005
+++ stickynotes/stickynotes_applet_callbacks.c  Wed Jul 13 18:57:13 2005
@@ -153,6 +153,7 @@ gboolean applet_check_click_on_desktop_c
 {
    static Window desktop_window = 0;
    static Display *dpy;
+   XEvent event;
 
    if (desktop_window == 0) {
        desktop_window = get_desktop_window ();
@@ -162,7 +163,6 @@ gboolean applet_check_click_on_desktop_c
                  * at every click on the desktop */
        XSelectInput(dpy, desktop_window, PropertyChangeMask);
    }
-   XEvent event;
 
    if (XCheckWindowEvent(dpy, desktop_window, PropertyChangeMask, &event) == True) {
        stickynote_show_notes (FALSE);