From 7b93ad8071b0e277e2aedd76d6a4024d415fffc0 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Wed, 5 Aug 2009 14:35:33 -0600 Subject: [PATCH] Don't pass mouse clicks when window is desktop type. --- src/conky.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/conky.c b/src/conky.c index 0b41d3da..8668d6d0 100644 --- a/src/conky.c +++ b/src/conky.c @@ -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 {