fixed for issue 32
git-svn-id: http://tint2.googlecode.com/svn/trunk@461 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
@@ -12,7 +12,7 @@ border_color = #000000 0
|
|||||||
# ID 2
|
# ID 2
|
||||||
rounded = 1
|
rounded = 1
|
||||||
border_width = 0
|
border_width = 0
|
||||||
background_color = #F6B655 86
|
background_color = #F6B655 85
|
||||||
border_color = #CCCCCC 40
|
border_color = #CCCCCC 40
|
||||||
|
|
||||||
# Panel
|
# Panel
|
||||||
@@ -31,7 +31,7 @@ autohide = 0
|
|||||||
autohide_show_timeout = 0.0
|
autohide_show_timeout = 0.0
|
||||||
autohide_hide_timeout = 0.0
|
autohide_hide_timeout = 0.0
|
||||||
autohide_height = 0
|
autohide_height = 0
|
||||||
strut_policy = none
|
strut_policy = follow_size
|
||||||
|
|
||||||
# Taskbar
|
# Taskbar
|
||||||
taskbar_mode = single_desktop
|
taskbar_mode = single_desktop
|
||||||
@@ -76,7 +76,7 @@ systray_icon_asb = 100 -90 -15
|
|||||||
# Clock
|
# Clock
|
||||||
time1_format = %H:%M
|
time1_format = %H:%M
|
||||||
time1_font = sans 13
|
time1_font = sans 13
|
||||||
clock_font_color = #FFFFFF 86
|
clock_font_color = #FFFFFF 85
|
||||||
clock_padding = 2 0
|
clock_padding = 2 0
|
||||||
clock_background_id = 0
|
clock_background_id = 0
|
||||||
|
|
||||||
@@ -106,4 +106,4 @@ battery_font_color = #FFFFFF 100
|
|||||||
battery_padding = 2 0
|
battery_padding = 2 0
|
||||||
battery_background_id = 0
|
battery_background_id = 0
|
||||||
|
|
||||||
# End of config
|
# End of config
|
||||||
|
|||||||
@@ -7,12 +7,12 @@
|
|||||||
rounded = 3
|
rounded = 3
|
||||||
border_width = 1
|
border_width = 1
|
||||||
background_color = #000000 40
|
background_color = #000000 40
|
||||||
border_color = #D1D1D1 31
|
border_color = #D1D1D1 30
|
||||||
|
|
||||||
# ID 2
|
# ID 2
|
||||||
rounded = 3
|
rounded = 3
|
||||||
border_width = 1
|
border_width = 1
|
||||||
background_color = #000000 52
|
background_color = #000000 51
|
||||||
border_color = #D1D1D1 40
|
border_color = #D1D1D1 40
|
||||||
|
|
||||||
# Panel
|
# Panel
|
||||||
@@ -31,7 +31,7 @@ autohide = 0
|
|||||||
autohide_show_timeout = 0.0
|
autohide_show_timeout = 0.0
|
||||||
autohide_hide_timeout = 0.0
|
autohide_hide_timeout = 0.0
|
||||||
autohide_height = 0
|
autohide_height = 0
|
||||||
strut_policy = none
|
strut_policy = follow_size
|
||||||
|
|
||||||
# Taskbar
|
# Taskbar
|
||||||
taskbar_mode = single_desktop
|
taskbar_mode = single_desktop
|
||||||
@@ -60,8 +60,8 @@ task_iconified_icon_asb = 100 0 0
|
|||||||
# Fonts
|
# Fonts
|
||||||
task_font = sans bold 7.5
|
task_font = sans bold 7.5
|
||||||
task_font_color = #FFFFFF 60
|
task_font_color = #FFFFFF 60
|
||||||
task_active_font_color = #FFFFFF 87
|
task_active_font_color = #FFFFFF 86
|
||||||
task_urgent_font_color = #FFFFFF 87
|
task_urgent_font_color = #FFFFFF 86
|
||||||
task_iconified_font_color = #FFFFFF 60
|
task_iconified_font_color = #FFFFFF 60
|
||||||
font_shadow = 0
|
font_shadow = 0
|
||||||
|
|
||||||
@@ -99,4 +99,4 @@ battery_font_color = #FFFFFF 100
|
|||||||
battery_padding = 1 0
|
battery_padding = 1 0
|
||||||
battery_background_id = 0
|
battery_background_id = 0
|
||||||
|
|
||||||
# End of config
|
# End of config
|
||||||
|
|||||||
15
src/tint.c
15
src/tint.c
@@ -318,7 +318,8 @@ void event_button_press (XEvent *e)
|
|||||||
}
|
}
|
||||||
task_drag = click_task(panel, e->xbutton.x, e->xbutton.y);
|
task_drag = click_task(panel, e->xbutton.x, e->xbutton.y);
|
||||||
|
|
||||||
XLowerWindow (server.dsp, panel->main_win);
|
if (panel_layer == BOTTOM_LAYER)
|
||||||
|
XLowerWindow (server.dsp, panel->main_win);
|
||||||
}
|
}
|
||||||
|
|
||||||
void event_button_motion_notify (XEvent *e)
|
void event_button_motion_notify (XEvent *e)
|
||||||
@@ -383,7 +384,8 @@ void event_button_release (XEvent *e)
|
|||||||
|
|
||||||
if (wm_menu && !tint2_handles_click(panel, &e->xbutton)) {
|
if (wm_menu && !tint2_handles_click(panel, &e->xbutton)) {
|
||||||
forward_click(e);
|
forward_click(e);
|
||||||
XLowerWindow (server.dsp, panel->main_win);
|
if (panel_layer == BOTTOM_LAYER)
|
||||||
|
XLowerWindow (server.dsp, panel->main_win);
|
||||||
task_drag = 0;
|
task_drag = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -412,7 +414,8 @@ void event_button_release (XEvent *e)
|
|||||||
|
|
||||||
if ( click_clock(panel, e->xbutton.x, e->xbutton.y)) {
|
if ( click_clock(panel, e->xbutton.x, e->xbutton.y)) {
|
||||||
clock_action(e->xbutton.button);
|
clock_action(e->xbutton.button);
|
||||||
XLowerWindow (server.dsp, panel->main_win);
|
if (panel_layer == BOTTOM_LAYER)
|
||||||
|
XLowerWindow (server.dsp, panel->main_win);
|
||||||
task_drag = 0;
|
task_drag = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -420,7 +423,8 @@ void event_button_release (XEvent *e)
|
|||||||
Taskbar *tskbar;
|
Taskbar *tskbar;
|
||||||
if ( !(tskbar = click_taskbar(panel, e->xbutton.x, e->xbutton.y)) ) {
|
if ( !(tskbar = click_taskbar(panel, e->xbutton.x, e->xbutton.y)) ) {
|
||||||
// TODO: check better solution to keep window below
|
// TODO: check better solution to keep window below
|
||||||
XLowerWindow (server.dsp, panel->main_win);
|
if (panel_layer == BOTTOM_LAYER)
|
||||||
|
XLowerWindow (server.dsp, panel->main_win);
|
||||||
task_drag = 0;
|
task_drag = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -442,7 +446,8 @@ void event_button_release (XEvent *e)
|
|||||||
window_action( click_task(panel, e->xbutton.x, e->xbutton.y), action);
|
window_action( click_task(panel, e->xbutton.x, e->xbutton.y), action);
|
||||||
|
|
||||||
// to keep window below
|
// to keep window below
|
||||||
XLowerWindow (server.dsp, panel->main_win);
|
if (panel_layer == BOTTOM_LAYER)
|
||||||
|
XLowerWindow (server.dsp, panel->main_win);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user