all repos — fluxbox @ cfb26be26928c53a0be267f4707041bb82371519

custom fork of the fluxbox windowmanager

added feature request #1084510:
when mod1 + leftmouse are clicked on a window and the mouse is not
moved, the window is raised at leftmouserelease. i dont think we
need an extra option for that since its very unobtrusive but neat
to have.
mathias mathias
commit

cfb26be26928c53a0be267f4707041bb82371519

parent

2b2236e97c10bf61f1ae518e5f9b951326a5fa0a

2 files changed, 9 insertions(+), 0 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,5 +1,10 @@

(Format: Year/Month/Day) Changes for 0.9.14: +*05/09/04: + * Added Feature Request #1084510 (Mathias) + When Mod1 + LeftMouse are clicked on a Window and the mouse is not + moved, the window is raised at LeftMouseRelease + src/Window.cc *05/09/03: * Exchanged the hardcoded 3200 pixel limit for texture size to a calculated value based on screen dimensions (Mathias)
M src/Window.ccsrc/Window.cc

@@ -2658,6 +2658,10 @@ }

void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) { + if ((re.button == 1) && (re.state & Mod1Mask) && !screen().clickRaises()) + if (!isMoving()) + raise(); + if (isMoving()) stopMoving(); else if (isResizing())