all repos — tint2 @ 829c910133ffa4805fb4262dcf65f6df572d258a

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

fixed issue 56 : with windowmaker

git-svn-id: http://tint2.googlecode.com/svn/trunk@89 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
lorthiois@bbsoft.fr lorthiois@bbsoft.fr@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

829c910133ffa4805fb4262dcf65f6df572d258a

parent

58013e2e0c78022e89338660859c2ec39ec58d63

4 files changed, 15 insertions(+), 5 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,3 +1,7 @@

+2009-06-06 +- fixed issue 56 : with windowmaker + bug in windowmaker : send unecessary 'desktop changed' each time focus changed + 2009-06-06 - add 'wm_menu' config option to disable window manager's menu if you don't specify "wm_menu = ", the default value will show WM menu.
M src/tint.csrc/tint.c

@@ -430,9 +430,14 @@ panel_refresh = 1;

} // Window desktop changed else if (at == server.atom._NET_WM_DESKTOP) { - remove_task (tsk); - add_task (win); - panel_refresh = 1; + int desktop = window_get_desktop (win); + //printf(" Window desktop changed %d, %d\n", tsk->desktop, desktop); + // bug in windowmaker : send unecessary 'desktop changed' when focus changed + if (desktop != tsk->desktop) { + remove_task (tsk); + add_task (win); + panel_refresh = 1; + } } if (!server.got_root_win) server.root_win = RootWindow (server.dsp, server.screen);
M src/util/window.csrc/util/window.c

@@ -96,7 +96,7 @@ }

at = server_get_property (win, server.atom._NET_WM_STATE, XA_ATOM, &count); for (i = 0; i < count; i++) { - if (at[i] == server.atom._NET_WM_STATE_SKIP_PAGER || at[i] == server.atom._NET_WM_STATE_SKIP_TASKBAR) { + if (at[i] == server.atom._NET_WM_STATE_SKIP_TASKBAR) { XFree(at); return 1; }

@@ -113,8 +113,9 @@ }

XFree(at); for (i=0 ; i < nb_panel ; i++) { - if (panel1[i].main_win == win) + if (panel1[i].main_win == win) { return 1; + } } // specification