[Xfce4-commits] r25805 - xfwm4/trunk/src

Olivier Fourdan olivier at xfce.org
Tue Jun 12 21:14:56 CEST 2007


Author: olivier
Date: 2007-06-12 19:14:56 +0000 (Tue, 12 Jun 2007)
New Revision: 25805

Modified:
   xfwm4/trunk/src/client.c
Log:
Keep button hilighted after a press if relevant

Modified: xfwm4/trunk/src/client.c
===================================================================
--- xfwm4/trunk/src/client.c	2007-06-11 22:04:02 UTC (rev 25804)
+++ xfwm4/trunk/src/client.c	2007-06-12 19:14:56 UTC (rev 25805)
@@ -5059,7 +5059,11 @@
 
     if (c->button_status[b] == BUTTON_STATE_PRESSED)
     {
-        c->button_status[b] = BUTTON_STATE_NORMAL;
+        /* 
+         * Button was pressed at the time, means the pointer was still within 
+         * the button, so return to prelight.
+         */
+        c->button_status[b] = BUTTON_STATE_PRELIGHT;
         switch (b)
         {
             case HIDE_BUTTON:



More information about the Xfce4-commits mailing list