all repos — fluxbox @ 2cac7ddf6fb0b3c937c4ea7b55b20960e362a360

custom fork of the fluxbox windowmanager

fixed a small issue with autohidden toolbar

the toolbar was not going to hidden state when the slit
covered the toolbar and the mouse was still in the toolbar
area. now we check event.subwindow to decide if it was a
"valid" leaveNotifyEvent.
Mathias Gumz akira at fluxbox dot org
commit

2cac7ddf6fb0b3c937c4ea7b55b20960e362a360

parent

d300c62ba090a3bfac65a2c8dcc7add1b4cf45b4

1 files changed, 8 insertions(+), 2 deletions(-)

jump to
M src/Toolbar.ccsrc/Toolbar.cc

@@ -567,10 +567,16 @@ }

} void Toolbar::leaveNotifyEvent(XCrossingEvent &event) { - // still inside? + + // in autoHide mode we'll receive a leaveNotifyEvent when activating + // the toolbar. so check if we are still inside the toolbar area. + // event.subwindow gets != None if we really left the window (eg the Slit + // was entered ontop of the toolbar) if (event.x_root > x() && event.x_root <= (int)(x() + width()) && - event.y_root > y() && event.y_root <= (int)(y() + height())) + event.y_root > y() && event.y_root <= (int)(y() + height()) && + event.subwindow == None ) { return; + } Fluxbox::instance()->keys()->doAction(event.type, event.state, 0, Keys::ON_TOOLBAR);