all repos — fluxbox @ d2a50e03206f58557cfed0ab4bcd12a2c833eb0a

custom fork of the fluxbox windowmanager

minor fix for root pixmap
fluxgen fluxgen
commit

d2a50e03206f58557cfed0ab4bcd12a2c833eb0a

parent

e3921394c98ce6e894d7ac0c6d5af2ba0e6fb062

2 files changed, 26 insertions(+), 20 deletions(-)

jump to
M src/Screen.ccsrc/Screen.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.132 2003/04/25 11:05:11 fluxgen Exp $ +// $Id: Screen.cc,v 1.133 2003/04/25 11:56:13 fluxgen Exp $ #include "Screen.hh"

@@ -544,21 +544,6 @@ sizeof(pid_t) * 8, PropModeReplace,

(unsigned char *) &bpid, 1); #endif // HAVE_GETPID - Atom real_type; - int real_format; - unsigned long items_read, items_left; - unsigned int *data; - if (XGetWindowProperty(disp, getRootWindow(), - XInternAtom(disp, "_XROOTPMAP_ID", false), - 0L, 1L, - false, XA_PIXMAP, &real_type, - &real_format, &items_read, &items_left, - (unsigned char **) &data) == Success && - items_read) { - m_root_pm = (Pixmap) (*data); - XFree(data); - } else - m_root_pm = 0; cycling_window = focused_list.end();

@@ -783,6 +768,29 @@ }

unsigned int BScreen::getCurrentWorkspaceID() const { return current_workspace->workspaceID(); +} + +Pixmap BScreen::rootPixmap() const { + + Pixmap root_pm = 0; + Display *disp = FbTk::App::instance()->display(); + Atom real_type; + int real_format; + unsigned long items_read, items_left; + unsigned int *data; + if (XGetWindowProperty(disp, getRootWindow(), + XInternAtom(disp, "_XROOTPMAP_ID", false), + 0L, 1L, + false, XA_PIXMAP, &real_type, + &real_format, &items_read, &items_left, + (unsigned char **) &data) == Success && + items_read) { + root_pm = (Pixmap) (*data); + XFree(data); + } + + return root_pm; + } /// TODO
M src/Screen.hhsrc/Screen.hh

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.hh,v 1.85 2003/04/25 11:40:22 fluxgen Exp $ +// $Id: Screen.hh,v 1.86 2003/04/25 11:56:12 fluxgen Exp $ #ifndef SCREEN_HH #define SCREEN_HH

@@ -129,7 +129,7 @@ const FbTk::Menu *getWorkspacemenu() const { return workspacemenu.get(); }

FbTk::Menu *getWorkspacemenu() { return workspacemenu.get(); } unsigned int getCurrentWorkspaceID() const; - Pixmap rootPixmap() const { return m_root_pm; } + Pixmap rootPixmap() const; /* maximum screen surface */

@@ -412,8 +412,6 @@ } resource;

std::auto_ptr<RootTheme> m_root_theme; ToolbarHandler *m_toolbarhandler; - Pixmap m_root_pm; - };