aboutsummaryrefslogtreecommitdiff
path: root/src/FocusControl.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2012-07-07 02:30:39 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2012-07-07 02:30:39 (GMT)
commit9eecd58bf30c8b1c0d72b9070bf91e2c60f32fa5 (patch)
tree340b04665d5df5305bdb59bf619aee8813b33d39 /src/FocusControl.cc
parent610a15ac47371c5cbd4c2dcf6eec696aec5bb4fa (diff)
downloadfluxbox-9eecd58bf30c8b1c0d72b9070bf91e2c60f32fa5.zip
fluxbox-9eecd58bf30c8b1c0d72b9070bf91e2c60f32fa5.tar.bz2
make alt-tab skip modal windows
Diffstat (limited to 'src/FocusControl.cc')
-rw-r--r--src/FocusControl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FocusControl.cc b/src/FocusControl.cc
index 5bf113f..383de61 100644
--- a/src/FocusControl.cc
+++ b/src/FocusControl.cc
@@ -53,7 +53,7 @@ namespace {
53 53
54bool doSkipWindow(const Focusable &win, const ClientPattern *pat) { 54bool doSkipWindow(const Focusable &win, const ClientPattern *pat) {
55 const FluxboxWindow *fbwin = win.fbwindow(); 55 const FluxboxWindow *fbwin = win.fbwindow();
56 if (!fbwin || fbwin->isFocusHidden()) 56 if (!fbwin || fbwin->isFocusHidden() || fbwin->isModal())
57 return true; // skip if no fbwindow or if focushidden 57 return true; // skip if no fbwindow or if focushidden
58 if (pat && !pat->match(win)) 58 if (pat && !pat->match(win))
59 return true; // skip if it doesn't match the pattern 59 return true; // skip if it doesn't match the pattern