diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-04-28 19:09:25 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-04-28 19:09:25 +0000 |
| commit | 4852193a578ea3c33f8685fd87322503c28e5544 (patch) | |
| tree | b8624c309852acb65831c0d21c21d2b3090a198a /src/openbox.cc | |
| parent | 1789f16af9d853e3961cbb7c0c753e0e12263969 (diff) | |
properly handle placing a window while another window is still placing.
Diffstat (limited to 'src/openbox.cc')
| -rw-r--r-- | src/openbox.cc | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/openbox.cc b/src/openbox.cc index 99d623e5..cfdb6e9b 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -479,19 +479,9 @@ void Openbox::process_event(XEvent *e) { if (! win) win = new OpenboxWindow(*this, e->xmaprequest.window); - if ((win = searchWindow(e->xmaprequest.window))) { + if ((win = searchWindow(e->xmaprequest.window))) win->mapRequestEvent(&e->xmaprequest); - // if we're using the click to place placement type, then immediately - // after the window is mapped, we need to start interactively moving it - if (win->getScreen()->placementPolicy() == BScreen::ClickMousePlacement) { - int x, y, rx, ry; - Window c, r; - unsigned int m; - XQueryPointer(getXDisplay(), win->getScreen()->getRootWindow(), - &r, &c, &rx, &ry, &x, &y, &m); - win->startMove(rx, ry); - } - } + break; } |
