From cfb26be26928c53a0be267f4707041bb82371519 Mon Sep 17 00:00:00 2001 From: mathias Date: Sun, 4 Sep 2005 21:22:09 +0000 Subject: 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. --- ChangeLog | 5 +++++ src/Window.cc | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4934fa8..cc90829 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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) diff --git a/src/Window.cc b/src/Window.cc index db430f9..93fbea7 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -2658,6 +2658,10 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) { void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) { + if ((re.button == 1) && (re.state & Mod1Mask) && !screen().clickRaises()) + if (!isMoving()) + raise(); + if (isMoving()) stopMoving(); else if (isResizing()) -- cgit v0.11.2