all repos — fluxbox @ e23c2c4d1b777fffd4090b4120119027efb30b5e

custom fork of the fluxbox windowmanager

reenable clickRaise(), but on any button press if no key-action was found
Mathias Gumz akira at fluxbox dot org
commit

e23c2c4d1b777fffd4090b4120119027efb30b5e

parent

33dea858fbcb75d243ea17cb557de441fe82c2b0

1 files changed, 17 insertions(+), 1 deletions(-)

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

@@ -2355,8 +2355,24 @@

return; } + // if nothing was bound via keys-file then + // - raise() if clickRaise is enabled + // - hide open menues + // - focus on clickFocus + // - refeed the event into the queue so the app gets it + if (frame().window().window() == be.window) { + if (screen().clickRaises()) + raise(); - XAllowEvents(display, ReplayPointer, be.time); + XAllowEvents(display, ReplayPointer, be.time); + + m_button_grab_x = be.x_root - frame().x() - frame().window().borderWidth(); + m_button_grab_y = be.y_root - frame().y() - frame().window().borderWidth(); + } + FbTk::Menu::hideShownMenu(); + if (!m_focused && acceptsFocus() && m_click_focus) + focus(); + } void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) {