aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Window.cc b/src/Window.cc
index e766cab..4ced1c6 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2662,7 +2662,7 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
2662 frame().buttonPressEvent(be); 2662 frame().buttonPressEvent(be);
2663 2663
2664 if (be.button == 1 || (be.button == 3 && be.state == Mod1Mask)) { 2664 if (be.button == 1 || (be.button == 3 && be.state == Mod1Mask)) {
2665 if ((! focused) && (! screen().focusControl().isMouseFocus())) { //check focus 2665 if ( (! focused) ) { //check focus
2666 setInputFocus(); 2666 setInputFocus();
2667 } 2667 }
2668 2668
@@ -3024,7 +3024,7 @@ void FluxboxWindow::enterNotifyEvent(XCrossingEvent &ev) {
3024 sa.enter = sa.leave = False; 3024 sa.enter = sa.leave = False;
3025 XCheckIfEvent(display, &dummy, queueScanner, (char *) &sa); 3025 XCheckIfEvent(display, &dummy, queueScanner, (char *) &sa);
3026 3026
3027 if ((!sa.leave || sa.inferior)) { 3027 if ((!sa.leave || sa.inferior) && !screen().focusControl().isCycling() ) {
3028 setInputFocus(); 3028 setInputFocus();
3029 } 3029 }
3030 } 3030 }