Some systray fixes
This commit is contained in:
parent
106471225f
commit
f511ad2a67
2 changed files with 12 additions and 0 deletions
|
@ -1189,6 +1189,16 @@ void systray_render_icon_from_image(TrayWindow *traywin)
|
||||||
if (!traywin->image)
|
if (!traywin->image)
|
||||||
return;
|
return;
|
||||||
imlib_context_set_image(traywin->image);
|
imlib_context_set_image(traywin->image);
|
||||||
|
XCopyArea(server.display,
|
||||||
|
render_background,
|
||||||
|
systray.area.pix,
|
||||||
|
server.gc,
|
||||||
|
traywin->x - systray.area.posx,
|
||||||
|
traywin->y - systray.area.posy,
|
||||||
|
traywin->width,
|
||||||
|
traywin->height,
|
||||||
|
traywin->x - systray.area.posx,
|
||||||
|
traywin->y - systray.area.posy);
|
||||||
render_image(systray.area.pix, traywin->x - systray.area.posx, traywin->y - systray.area.posy);
|
render_image(systray.area.pix, traywin->x - systray.area.posx, traywin->y - systray.area.posy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -96,6 +96,8 @@ void cleanup_timeout()
|
||||||
|
|
||||||
timeout *add_timeout(int value_msec, int interval_msec, void (*_callback)(void *), void *arg, timeout **self)
|
timeout *add_timeout(int value_msec, int interval_msec, void (*_callback)(void *), void *arg, timeout **self)
|
||||||
{
|
{
|
||||||
|
if (self && *self)
|
||||||
|
return *self;
|
||||||
timeout *t = calloc(1, sizeof(timeout));
|
timeout *t = calloc(1, sizeof(timeout));
|
||||||
t->self = self;
|
t->self = self;
|
||||||
add_timeout_intern(value_msec, interval_msec, _callback, arg, t);
|
add_timeout_intern(value_msec, interval_msec, _callback, arg, t);
|
||||||
|
|
Loading…
Reference in a new issue