mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Use common netwm code from edelib.
This commit is contained in:
@@ -360,6 +360,8 @@ void Wallpaper::set_rootpmap(void) {
|
||||
return;
|
||||
|
||||
XImage* rootpmap_image = 0;
|
||||
Atom _XA_XROOTPMAP_ID;
|
||||
|
||||
rootpmap_pixmap = create_xpixmap(image(), &rootpmap_image, rootpmap_pixmap, w(), h());
|
||||
|
||||
if(!rootpmap_pixmap)
|
||||
@@ -369,6 +371,8 @@ void Wallpaper::set_rootpmap(void) {
|
||||
if(rootpmap_image)
|
||||
XDestroyImage(rootpmap_image);
|
||||
|
||||
_XA_XROOTPMAP_ID = XInternAtom(fl_display, "_XROOTPMAP_ID", False);
|
||||
|
||||
XChangeProperty(fl_display, RootWindow(fl_display, fl_screen),
|
||||
_XA_XROOTPMAP_ID, XA_PIXMAP, 32, PropModeReplace, (unsigned char *)&rootpmap_pixmap, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user