X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fscreen.cc;h=d61b501d8bf40ce77c96dcd5d6f8657de21be01a;hb=8c2dfe5de45babd0fbc12b69cdfe30a54cf873a2;hp=947471c241b8341ca50976b646b450e0b268e27a;hpb=fe55bb846db1933d8d6f023236298940cab441f8;p=chaz%2Fopenbox diff --git a/src/screen.cc b/src/screen.cc index 947471c2..d61b501d 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -89,6 +89,14 @@ OBScreen::OBScreen(int screen, const otk::Configuration &config) otk::OBProperty::Atom_Cardinal, viewport, 2); + // create the window which gets focus when no clients get it + XSetWindowAttributes attr; + attr.override_redirect = true; + _focuswindow = XCreateWindow(otk::OBDisplay::display, _info->rootWindow(), + -100, -100, 1, 1, 0, 0, InputOnly, + _info->visual(), CWOverrideRedirect, &attr); + XMapWindow(otk::OBDisplay::display, _focuswindow); + // these may be further updated if any pre-existing windows are found in // the manageExising() function setClientList(); // initialize the client lists, which will be empty