Better handling of the systray_monitor option

git-svn-id: http://tint2.googlecode.com/svn/trunk@678 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000
2015-01-31 11:02:35 +00:00
committed by mrovi9000@gmail.com
parent 5a789c2d7f
commit b70e6b500e
3 changed files with 9 additions and 5 deletions

View File

@@ -636,3 +636,9 @@ void refresh_systray_icon()
systray_render_icon(traywin);
}
}
int systray_on_monitor(int i_monitor, int nb_panels)
{
return (i_monitor == systray_monitor) ||
(i_monitor == 0 && (systray_monitor >= nb_panels || systray_monitor < 0));
}

View File

@@ -67,7 +67,7 @@ void init_systray_panel(void *p);
void draw_systray(void *obj, cairo_t *c);
int resize_systray(void *obj);
void on_change_systray(void *obj);
int systray_on_monitor(int i_monitor, int nb_panels);
// systray protocol
// many tray icon doesn't manage stop/restart of the systray manager