all repos — tint2 @ 3082da0f5c093b3318f202c05a30045425436124

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

added possibility to put tint2 into the windowmanagers dock


git-svn-id: http://tint2.googlecode.com/svn/trunk@172 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
Andreas.Fink85 Andreas.Fink85@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

3082da0f5c093b3318f202c05a30045425436124

parent

7520a1ca6aec3a853c2642fce2fc9a9a6ce2e9e2

9 files changed, 20 insertions(+), 3 deletions(-)

jump to
M src/config.csrc/config.c

@@ -338,6 +338,8 @@ memcpy(&panel_config->area.pix.border, &a->pix.border, sizeof(Border));

} else if (strcmp (key, "wm_menu") == 0) wm_menu = atoi (value); + else if (strcmp (key, "panel_dock") == 0) + panel_dock = atoi (value); else if (strcmp (key, "urgent_nb_of_blink") == 0) max_tick_urgent = (atoi (value) * 2) + 1;
M src/panel.csrc/panel.c

@@ -43,6 +43,7 @@ int mouse_tilt_right;

int panel_mode; int wm_menu; +int panel_dock=0; // default not in the dock int panel_position; int panel_horizontal; int panel_refresh;

@@ -369,9 +370,16 @@ XChangeProperty (server.dsp, p->main_win, XA_WM_NORMAL_HINTS, XA_WM_SIZE_HINTS, 32, PropModeReplace, (unsigned char *) &size_hints, sizeof (XSizeHints) / 4);

// Unfocusable XWMHints wmhints; - wmhints.flags = InputHint; - wmhints.input = False; - XChangeProperty (server.dsp, p->main_win, XA_WM_HINTS, XA_WM_HINTS, 32, PropModeReplace, (unsigned char *) &wmhints, sizeof (XWMHints) / 4); + if (panel_dock) { + wmhints.icon_window = wmhints.window_group = p->main_win; + wmhints.flags = StateHint | IconWindowHint; + wmhints.initial_state = WithdrawnState; + } + else { + wmhints.flags = InputHint; + wmhints.input = False; + } + XSetWMHints(server.dsp, p->main_win, &wmhints); // Undecorated long prop[5] = { 2, 0, 0, 0, 0 };
M src/panel.hsrc/panel.h

@@ -39,6 +39,7 @@ //panel mode

enum { SINGLE_DESKTOP=0, MULTI_DESKTOP }; extern int panel_mode; extern int wm_menu; +extern int panel_dock; //panel position enum { LEFT=0x01, RIGHT=0x02, CENTER=0X04, TOP=0X08, BOTTOM=0x10 };
M tintrc01tintrc01

@@ -32,6 +32,7 @@ panel_padding = 7 0

font_shadow = 0 panel_background_id = 1 wm_menu = 0 +panel_dock = 0 #--------------------------------------------- # TASKBAR
M tintrc02tintrc02

@@ -31,6 +31,7 @@ panel_padding = 7 3 7

font_shadow = 0 panel_background_id = 1 wm_menu = 0 +panel_dock = 0 #--------------------------------------------- # TASKBAR
M tintrc03tintrc03

@@ -26,6 +26,7 @@ panel_padding = 0 2 5

font_shadow = 0 panel_background_id = 0 wm_menu = 0 +panel_dock = 0 #--------------------------------------------- # TASKBAR
M tintrc04tintrc04

@@ -26,6 +26,7 @@ panel_padding = 0 0 0

font_shadow = 0 panel_background_id = 1 wm_menu = 0 +panel_dock = 0 #--------------------------------------------- # TASKBAR
M tintrc05tintrc05

@@ -32,6 +32,7 @@ panel_padding = 10 3 10

font_shadow = 0 panel_background_id = 0 wm_menu = 1 +panel_dock = 0 #--------------------------------------------- # TASKBAR
M tintrc06tintrc06

@@ -38,6 +38,7 @@ panel_padding = 7 3 5

font_shadow = 0 panel_background_id = 1 wm_menu = 1 +panel_dock = 0 #--------------------------------------------- # TASKBAR