diff options
author | mathias <mathias> | 2005-09-04 21:22:09 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-09-04 21:22:09 (GMT) |
commit | cfb26be26928c53a0be267f4707041bb82371519 (patch) | |
tree | ab9a613fd108fd8081b13f1f8d07c0ba8c3ce805 /src | |
parent | 2b2236e97c10bf61f1ae518e5f9b951326a5fa0a (diff) | |
download | fluxbox-cfb26be26928c53a0be267f4707041bb82371519.zip fluxbox-cfb26be26928c53a0be267f4707041bb82371519.tar.bz2 |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/Window.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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) { | |||
2658 | 2658 | ||
2659 | void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) { | 2659 | void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) { |
2660 | 2660 | ||
2661 | if ((re.button == 1) && (re.state & Mod1Mask) && !screen().clickRaises()) | ||
2662 | if (!isMoving()) | ||
2663 | raise(); | ||
2664 | |||
2661 | if (isMoving()) | 2665 | if (isMoving()) |
2662 | stopMoving(); | 2666 | stopMoving(); |
2663 | else if (isResizing()) | 2667 | else if (isResizing()) |