]> Dogcows Code - chaz/openbox/commitdiff
HRM manageExisting() isnt working!
authorDana Jansens <danakj@orodu.net>
Mon, 11 Nov 2002 10:35:59 +0000 (10:35 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 11 Nov 2002 10:35:59 +0000 (10:35 +0000)
src/frame.cc
src/openbox.cc
src/screen.cc
src/screen.hh

index b802889aac090b62b664a6f67d9bcc43d64354e3..388dcea64a8451aa5f30955a851bee389e6cfdfd 100644 (file)
@@ -405,7 +405,7 @@ void OBFrame::grabClient()
                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 OBFrame::createChild(Window parent, Cursor cursor)
   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;
 }
 
index e4dd5cb6587856c38b5e5248bf7bfb510786dd89..5e0bff0cb67b2a61ef2e777d6fc40e98c9914ba1 100644 (file)
@@ -129,6 +129,8 @@ Openbox::Openbox(int argc, char **argv)
 
   // 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
 }
index 3c63aa3489445276886f2a9cf35bfdb7bafae70e..2da8c77a11e4407fa92116aa1c418329cbb1ee0f 100644 (file)
@@ -92,10 +92,6 @@ OBScreen::OBScreen(int screen, const otk::Configuration &config)
   // 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 @@ void OBScreen::manageWindow(Window window)
   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))) {
index c20e676f941a036e1fbd344bcd87841aaefdc141..91295f32e86d0a3913565ace0fd3e78ba3632396 100644 (file)
@@ -74,8 +74,6 @@ private:
   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 @@ public:
   //! 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.
This page took 0.030488 seconds and 4 git commands to generate.