HRM manageExisting() isnt working!
Dana Jansens danakj@orodu.net
4 files changed,
6 insertions(+),
9 deletions(-)
M
src/frame.cc
→
src/frame.cc
@@ -405,7 +405,7 @@ XSelectInput(otk::OBDisplay::display, _client->window(),
OBClient::event_mask); // raise the client above the frame - XRaiseWindow(otk::OBDisplay::display, _client->window()); + //XRaiseWindow(otk::OBDisplay::display, _client->window()); // map the client so it maps when the frame does XMapWindow(otk::OBDisplay::display, _client->window());@@ -454,7 +454,6 @@
Window w = XCreateWindow(otk::OBDisplay::display, parent, 0, 0, 1, 1, 0, _screen->getDepth(), InputOutput, _screen->getVisual(), create_mask, &attrib_create); - XRaiseWindow(otk::OBDisplay::display, w); // raise above the parent return w; }
M
src/openbox.cc
→
src/openbox.cc
@@ -129,6 +129,8 @@ _cursors.ur_angle = XCreateFontCursor(otk::OBDisplay::display, XC_ur_angle);
// initialize all the screens _screens.push_back(new OBScreen(0, _config)); + _screens[0]->manageExisting(); + // XXX: "change to" the first workspace on the screen to initialize stuff _state = State_Normal; // done starting }
M
src/screen.cc
→
src/screen.cc
@@ -92,10 +92,6 @@ // 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 calcArea(); // initialize the available working area - - manageExisting(); - - // XXX: "change to" the first workspace to initialize stuff }@@ -331,7 +327,7 @@ OBClient *client = 0;
XWMHints *wmhint; XSetWindowAttributes attrib_set; - // XXX: manage the window, i.e. grab events n shit + printf("Managing Window: %lx\n", window); // is the window a docking app if ((wmhint = XGetWMHints(otk::OBDisplay::display, window))) {
M
src/screen.hh
→
src/screen.hh
@@ -74,8 +74,6 @@ //! Areas of the screen reserved by applications
StrutList _struts; - //! Manage any pre-existing windows on the screen - void manageExisting(); //! Calculate the OBScreen::_area member void calcArea(); //! Set the client list on the root window@@ -119,6 +117,8 @@
//! Loads a new style on the screen void loadStyle(const otk::Configuration &config); + //! Manage any pre-existing windows on the screen + void manageExisting(); //! Manage a client window /*! This gives the window a frame, reparents it, selects events on it, etc.