aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-19 06:55:14 (GMT)
committersimonb <simonb>2006-04-19 06:55:14 (GMT)
commit853b0340373b81110c151e97189dea16938d3dd9 (patch)
tree6358647bc2057d40fa0fe93a99dec32088e37091 /src/Window.cc
parent759ca9e6b5103c5589d4d5db3883fd34801cb1bf (diff)
downloadfluxbox_pavel-853b0340373b81110c151e97189dea16938d3dd9.zip
fluxbox_pavel-853b0340373b81110c151e97189dea16938d3dd9.tar.bz2
mouse focus fixes - thanks Scott Kuhl: skuhl AT cs utah edu
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 }