reusing the blackbox-cvs bsetroot. it did in fact work right now.
This commit is contained in:
parent
b3737edc7c
commit
99555fea08
1 changed files with 14 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
// -*- mode++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
|
// -*- mode++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
|
||||||
// Window.cc for Blackbox - an X11 Window manager
|
// bsetroot.cc for Blackbox - an X11 Window manager
|
||||||
// Copyright (c) 2001 - 2002 Sean 'Shaleh' Perry <shaleh at debian.org>
|
// Copyright (c) 2001 - 2002 Sean 'Shaleh' Perry <shaleh at debian.org>
|
||||||
// Copyright (c) 1997 - 2000, 2002 Brad Hughes <bhughes at trolltech.com>
|
// Copyright (c) 1997 - 2000, 2002 Brad Hughes <bhughes at trolltech.com>
|
||||||
//
|
//
|
||||||
|
@ -150,11 +150,19 @@ void bsetroot::setPixmapProperty(int screen, Pixmap pixmap) {
|
||||||
|
|
||||||
/* Clear out the old pixmap */
|
/* Clear out the old pixmap */
|
||||||
XGetWindowProperty(getXDisplay(), screen_info->getRootWindow(),
|
XGetWindowProperty(getXDisplay(), screen_info->getRootWindow(),
|
||||||
rootpmap_id, 0L, 1L, False, XA_PIXMAP,
|
rootpmap_id, 0L, 1L, False, AnyPropertyType,
|
||||||
&type, &format, &length, &after, &data);
|
&type, &format, &length, &after, &data);
|
||||||
if (type == XA_PIXMAP && format == 32) {
|
|
||||||
|
if ((type == XA_PIXMAP) && (format == 32) && (length == 1)) {
|
||||||
|
unsigned char* data_esetroot = 0;
|
||||||
|
XGetWindowProperty(getXDisplay(), screen_info->getRootWindow(),
|
||||||
|
esetroot_id, 0L, 1L, False, AnyPropertyType,
|
||||||
|
&type, &format, &length, &after, &data_esetroot);
|
||||||
|
if (data && data_esetroot && *((Pixmap *) data)) {
|
||||||
XKillClient(getXDisplay(), *((Pixmap *) data));
|
XKillClient(getXDisplay(), *((Pixmap *) data));
|
||||||
XSync(getXDisplay(), False);
|
XSync(getXDisplay(), False);
|
||||||
|
XFree(data_esetroot);
|
||||||
|
}
|
||||||
XFree(data);
|
XFree(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue