1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 20:31:17 +00:00

Don't pass mouse clicks when window is desktop type.

This commit is contained in:
Brenden Matthews 2009-08-05 14:35:33 -06:00
parent 2115d925e4
commit 7b93ad8071

View File

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