X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fopenbox.cc;h=cfdb6e9bc3db9fbd9aae5bfb498af8ed4198d573;hb=22f8550d4508773fdcd97cfd96ce708550eef9d8;hp=99d623e5c99f4c3f4c556b0078a9a5540c87c356;hpb=8ef0610e9056613eeb1988dde95d252bc0988883;p=chaz%2Fopenbox 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; }