From 4191adb92cbd9a1cb02b7a913fa90d62ee32ec31 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 29 Nov 2005 22:04:02 +0000 Subject: (svn r3247) - Fix: "[ 1335580 ] sticky windows not sticky anymore" Determine clicked status of sticky icon from window flags rather than the widget click state. This keeps the status in one place where it can't get out of sync. --- misc_gui.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'misc_gui.c') diff --git a/misc_gui.c b/misc_gui.c index 8e9bfbb86..c3dc9dc9e 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -735,12 +735,7 @@ void UnclickSomeWindowButtons(Window *w, uint32 mask) void UnclickWindowButtons(Window *w) { - bool sticky = false; - if (w->desc_flags & WDF_STICKY_BUTTON && HASBIT(w->click_state, 2)) sticky = true; - UnclickSomeWindowButtons(w, (uint32)-1); - - if (sticky) SETBIT(w->click_state, 2); } -- cgit v1.2.3-70-g09d2