diff options
author | rathnor <rathnor> | 2003-03-22 05:13:08 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-03-22 05:13:08 (GMT) |
commit | 4b2ba8de473c028c16796f5c6cfcd41e97ef239e (patch) | |
tree | d67a5b21089d084d9fba3e181d0cd4b7f0dd5813 /src/fluxbox.cc | |
parent | 121e135a37c098334d142c5a04990af83fe18b7e (diff) | |
download | fluxbox_pavel-4b2ba8de473c028c16796f5c6cfcd41e97ef239e.zip fluxbox_pavel-4b2ba8de473c028c16796f5c6cfcd41e97ef239e.tar.bz2 |
fix outline moving and warping (Simon)
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r-- | src/fluxbox.cc | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 6155a72..8c9ee65 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: fluxbox.cc,v 1.103 2003/03/03 21:51:11 rathnor Exp $ | 25 | // $Id: fluxbox.cc,v 1.104 2003/03/22 05:13:08 rathnor Exp $ |
26 | 26 | ||
27 | 27 | ||
28 | #include "fluxbox.hh" | 28 | #include "fluxbox.hh" |
@@ -614,12 +614,17 @@ void Fluxbox::setupConfigFiles() { | |||
614 | 614 | ||
615 | void Fluxbox::handleEvent(XEvent * const e) { | 615 | void Fluxbox::handleEvent(XEvent * const e) { |
616 | 616 | ||
617 | if ((masked == e->xany.window) && masked_window && | 617 | // it is possible (e.g. during moving) for a window |
618 | (e->type == MotionNotify)) { | 618 | // to mask all events to go to it |
619 | last_time = e->xmotion.time; | 619 | if ((masked == e->xany.window) && masked_window) { |
620 | masked_window->motionNotifyEvent(e->xmotion); | 620 | if (e->type == MotionNotify) { |
621 | last_time = e->xmotion.time; | ||
622 | masked_window->motionNotifyEvent(e->xmotion); | ||
623 | return; | ||
624 | } else if (e->type == ButtonRelease) { | ||
625 | e->xbutton.window = masked_window->getFbWindow().window(); | ||
626 | } | ||
621 | 627 | ||
622 | return; | ||
623 | } | 628 | } |
624 | // try FbTk::EventHandler first | 629 | // try FbTk::EventHandler first |
625 | FbTk::EventManager::instance()->handleEvent(*e); | 630 | FbTk::EventManager::instance()->handleEvent(*e); |