diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-11 11:25:40 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-11 11:25:40 +0000 |
| commit | c4a1fac49da32250dc4567880b385feb7feaa908 (patch) | |
| tree | cd0d1358e70e3bc5db442e30adff3c37ef222403 /src/frame.cc | |
| parent | 24dd636f7318b0d21637aa7ffe253fe0ebf71f24 (diff) | |
manages windows that exist before running.
Diffstat (limited to 'src/frame.cc')
| -rw-r--r-- | src/frame.cc | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/frame.cc b/src/frame.cc index 1fed1768..20e81ebd 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -18,7 +18,7 @@ extern "C" { namespace ob { -OBFrame::OBFrame(const OBClient *client, const otk::Style *style) +OBFrame::OBFrame(OBClient *client, const otk::Style *style) : _client(client), _screen(otk::OBDisplay::screenInfo(client->screen())) { @@ -392,28 +392,19 @@ void OBFrame::updateShape() void OBFrame::grabClient() { - XGrabServer(otk::OBDisplay::display); - // select the event mask on the frame - XSelectInput(otk::OBDisplay::display, _window, SubstructureRedirectMask); + //XSelectInput(otk::OBDisplay::display, _window, SubstructureRedirectMask); // reparent the client to the frame - XSelectInput(otk::OBDisplay::display, _client->window(), - OBClient::event_mask & ~StructureNotifyMask); XReparentWindow(otk::OBDisplay::display, _client->window(), _window, 0, 0); - XSelectInput(otk::OBDisplay::display, _client->window(), - OBClient::event_mask); + _client->ignore_unmaps++; // raise the client above the frame //XRaiseWindow(otk::OBDisplay::display, _client->window()); // map the client so it maps when the frame does XMapWindow(otk::OBDisplay::display, _client->window()); - XUngrabServer(otk::OBDisplay::display); - update(); - - XMapWindow(otk::OBDisplay::display, _window); } |
