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.
This commit is contained in:
mathias 2005-09-04 21:22:09 +00:00
parent 2b2236e97c
commit cfb26be269
2 changed files with 9 additions and 0 deletions

View file

@ -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)

View file

@ -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())