all repos — tint2 @ 0cc577af23462ace6919c3fe3f80c190106bd39f

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

tint2-0.7 released

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

0cc577af23462ace6919c3fe3f80c190106bd39f

parent

94a8948466bb2c2ce2199153236574b37297b11a

6 files changed, 18 insertions(+), 10 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,3 +1,8 @@

+ +---------------------------------------------------------------- +2009-06-30 thilor77 <lorthiois@bbsoft.fr> +released tint-0.7 + 2009-06-29 - fixed bug when active window draged to another desktop
M configure.acconfigure.ac

@@ -1,6 +1,6 @@

# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -AC_INIT([tint2], [0.7_beta3], [http://code.google.com/p/tint2/issues]) +AC_INIT([tint2], [0.7], [http://code.google.com/p/tint2/issues]) LT_INIT AM_INIT_AUTOMAKE
M src/server.csrc/server.c

@@ -90,7 +90,7 @@ if (name_trayer) free(name_trayer);

} -void send_event32 (Window win, Atom at, long data1, long data2) +void send_event32 (Window win, Atom at, long data1, long data2, long data3) { XEvent event;

@@ -104,7 +104,7 @@

event.xclient.format = 32; event.xclient.data.l[0] = data1; event.xclient.data.l[1] = data2; - event.xclient.data.l[2] = 0; + event.xclient.data.l[2] = data3; event.xclient.data.l[3] = 0; event.xclient.data.l[4] = 0;
M src/server.hsrc/server.h

@@ -97,7 +97,7 @@

Server_global server; -void send_event32 (Window win, Atom at, long data1, long data2); +void send_event32 (Window win, Atom at, long data1, long data2, long data3); int get_property32 (Window win, Atom at, Atom type); void *server_get_property (Window win, Atom at, Atom type, int *num_results); Atom server_get_atom (char *atom_name);
M src/tint.csrc/tint.c

@@ -203,6 +203,7 @@ }

} } } + XLowerWindow (server.dsp, panel->main_win); }

@@ -289,9 +290,11 @@ else task_drag = 0;

} // switch desktop - if (panel_mode == MULTI_DESKTOP) + if (panel_mode == MULTI_DESKTOP) { if (tskbar->desktop != server.desktop && action != CLOSE) set_desktop (tskbar->desktop); + XFlush (server.dsp); + } // action on task Task *tsk;
M src/util/window.csrc/util/window.c

@@ -38,31 +38,31 @@

void set_active (Window win) { - send_event32 (win, server.atom._NET_ACTIVE_WINDOW, 2, 0); + send_event32 (win, server.atom._NET_ACTIVE_WINDOW, 2, CurrentTime, 0); } void set_desktop (int desktop) { - send_event32 (server.root_win, server.atom._NET_CURRENT_DESKTOP, desktop, 0); + send_event32 (server.root_win, server.atom._NET_CURRENT_DESKTOP, desktop, 0, 0); } void windows_set_desktop (Window win, int desktop) { - send_event32 (win, server.atom._NET_WM_DESKTOP, desktop, 2); + send_event32 (win, server.atom._NET_WM_DESKTOP, desktop, 2, 0); } void set_close (Window win) { - send_event32 (win, server.atom._NET_CLOSE_WINDOW, 0, 2); + send_event32 (win, server.atom._NET_CLOSE_WINDOW, 0, 2, 0); } void window_toggle_shade (Window win) { - send_event32 (win, server.atom._NET_WM_STATE, 2, server.atom._NET_WM_STATE_SHADED); + send_event32 (win, server.atom._NET_WM_STATE, 2, server.atom._NET_WM_STATE_SHADED, 0); } /*