Don't pass mouse clicks when window is desktop type.
authorBrenden Matthews <brenden@rty.ca>
Wed, 5 Aug 2009 20:35:33 +0000 (14:35 -0600)
committerBrenden Matthews <brenden@rty.ca>
Wed, 5 Aug 2009 20:35:33 +0000 (14:35 -0600)
src/conky.c

index 0b41d3d..8668d6d 100644 (file)
@@ -7587,9 +7587,10 @@ static void main_loop(void)
                                        case ButtonPress:
                                                if (own_window) {
                                                        /* if an ordinary window with decorations */
-                                                       if ((window.type == TYPE_NORMAL)
-                                                               && (!TEST_HINT(window.hints,
-                                                               HINT_UNDECORATED))) {
+                                                       if ((window.type == TYPE_NORMAL &&
+                                                                               (!TEST_HINT(window.hints,
+                                                                                                       HINT_UNDECORATED))) ||
+                                                                       window.type == TYPE_DESKTOP) {
                                                                /* allow conky to hold input focus. */
                                                                break;
                                                        } else {