mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Setup visual atom for app icons
This commit is contained in:
parent
513ffe504a
commit
d9e4715752
@ -90,6 +90,10 @@ void Tray::register_notification_area(void) {
|
|||||||
E_WARNING(E_STRLOC ": Unable to register notification area service\n");
|
E_WARNING(E_STRLOC ": Unable to register notification area service\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* setup visual atom so registering icons knows how to draw images */
|
||||||
|
Atom visual = XInternAtom(fl_display, "_NET_SYSTEM_TRAY_VISUAL", False);
|
||||||
|
XChangeProperty(fl_display, fl_message_window, visual, XA_VISUALID, 32, PropModeReplace, (unsigned char*)&fl_visual->visualid, 1);
|
||||||
|
|
||||||
XClientMessageEvent xev;
|
XClientMessageEvent xev;
|
||||||
xev.type = ClientMessage;
|
xev.type = ClientMessage;
|
||||||
@ -156,6 +160,8 @@ void Tray::remove_from_tray(Fl_Widget *win) {
|
|||||||
remove(win);
|
remove(win);
|
||||||
w(w() - win->w() - TRAY_ICONS_SPACE);
|
w(w() - win->w() - TRAY_ICONS_SPACE);
|
||||||
|
|
||||||
|
E_DEBUG("Removing child, left: %i\n", children());
|
||||||
|
|
||||||
distribute_children();
|
distribute_children();
|
||||||
|
|
||||||
redraw();
|
redraw();
|
||||||
|
Loading…
Reference in New Issue
Block a user