This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project wmaker-crm.git.

The branch, next has been updated
       via  dd8d320619316e3ca9361f03366fde906f4be100 (commit)
      from  89a6476a33b6cabde9646e01d7cbcf5ce7547a87 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://repo.or.cz/w/wmaker-crm.git/commit/dd8d320619316e3ca9361f03366fde906f4be100

commit dd8d320619316e3ca9361f03366fde906f4be100
Author: Iain Patterson <[email protected]>
Date:   Fri May 24 14:14:34 2013 +0100

    Undim switchpanel icons when selecting windows directly.
    
    If one or more icons were dimmed in the switchpanel because the user
    used GroupNext/PrevKey, then an icon was selected with the mouse or the
    Home or End keys, dimmed icons remained dim.  That could be unintuitive
    if the selected window was of a different class.
    
    Instead we now always redraw all icons when highlighting a different
    icon.

diff --git a/src/switchpanel.c b/src/switchpanel.c
index 6c8f6ea..cfb0033 100644
--- a/src/switchpanel.c
+++ b/src/switchpanel.c
@@ -625,12 +625,16 @@ WWindow *wSwitchPanelSelectFirst(WSwitchPanel *panel, int 
back)
 {
        WWindow *wwin;
        int count = WMGetArrayItemCount(panel->windows);
+       int i;
 
        if (count == 0)
                return NULL;
 
-       if (panel->win)
-               changeImage(panel, panel->current, 0, False);
+       if (panel->win) {
+               WM_ITERATE_ARRAY(panel->windows, wwin, i) {
+                       changeImage(panel, i, 0, False);
+               }
+       }
 
        if (back) {
                panel->current = count - 1;
@@ -671,7 +675,9 @@ WWindow *wSwitchPanelHandleEvent(WSwitchPanel *panel, 
XEvent *event)
        if (focus >= 0 && panel->current != focus) {
                WWindow *wwin;
 
-               changeImage(panel, panel->current, 0, False);
+               WM_ITERATE_ARRAY(panel->windows, wwin, i) {
+                       changeImage(panel, i, 0, False);
+               }
                changeImage(panel, focus, 1, False);
                panel->current = focus;
 

-----------------------------------------------------------------------

Summary of changes:
 src/switchpanel.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)


repo.or.cz automatic notification. Contact project admin [email protected]
if you want to unsubscribe, or site admin [email protected] if you receive
no reply.
-- 
wmaker-crm.git ("The Window Maker window manager")


-- 
To unsubscribe, send mail to [email protected].

Reply via email to