aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Toolbar.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 61402f1..26d87a8 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -567,10 +567,16 @@ void Toolbar::enterNotifyEvent(XCrossingEvent &ce) {
567} 567}
568 568
569void Toolbar::leaveNotifyEvent(XCrossingEvent &event) { 569void Toolbar::leaveNotifyEvent(XCrossingEvent &event) {
570 // still inside? 570
571 // in autoHide mode we'll receive a leaveNotifyEvent when activating
572 // the toolbar. so check if we are still inside the toolbar area.
573 // event.subwindow gets != None if we really left the window (eg the Slit
574 // was entered ontop of the toolbar)
571 if (event.x_root > x() && event.x_root <= (int)(x() + width()) && 575 if (event.x_root > x() && event.x_root <= (int)(x() + width()) &&
572 event.y_root > y() && event.y_root <= (int)(y() + height())) 576 event.y_root > y() && event.y_root <= (int)(y() + height()) &&
577 event.subwindow == None ) {
573 return; 578 return;
579 }
574 580
575 Fluxbox::instance()->keys()->doAction(event.type, event.state, 0, 581 Fluxbox::instance()->keys()->doAction(event.type, event.state, 0,
576 Keys::ON_TOOLBAR); 582 Keys::ON_TOOLBAR);