Root pixmap is set when wallpaper is choosed (pseudo transparency).

When icons are moved, correct shape is applied on that window.
...maybe something forgot to add...
This commit is contained in:
Sanel Zukan
2007-06-20 10:58:07 +00:00
parent 84339d9232
commit c153f4f114
7 changed files with 339 additions and 9 deletions

View File

@ -87,10 +87,16 @@ int desktop_xmessage_handler(int event) {
return 1;
}
if(fl_xevent->xclient.message_type == _XA_EDE_DESKTOP_NOTIFY_COLOR) {
//if(fl_xevent->xclient.message_type == _XA_EDE_DESKTOP_NOTIFY_COLOR) {
if(fl_xevent->xproperty.atom == _XA_EDE_DESKTOP_NOTIFY_COLOR) {
Desktop::instance()->notify_box_color(ede_get_desktop_notify_color());
return 1;
}
if(fl_xevent->xproperty.atom == _XA_NET_WORKAREA) {
Desktop::instance()->update_workarea();
return 1;
}
}
return 0;
@ -114,7 +120,9 @@ Desktop::Desktop() : Fl_Window(0, 0, 100, 100, "") {
*/
begin();
wallpaper = new Wallpaper(0, 0, w(), h());
wallpaper->set("/home/sanel/wallpapers/katebig.jpg");
//wallpaper->set("/home/sanel/wallpapers/katebig.jpg");
wallpaper->set("/home/sanelz/walls/nin/1024x768-04.jpg");
//wallpaper->set("/home/sanelz/walls/nin/1024x768-02.jpg");
notify = new NotifyBox(w(), h());
notify->hide();
end();