aboutsummaryrefslogtreecommitdiff
path: root/src/Ewmh.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ewmh.cc')
-rw-r--r--src/Ewmh.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index 019751f..b0269ec 100644
--- a/src/Ewmh.cc
+++ b/src/Ewmh.cc
@@ -782,7 +782,9 @@ bool Ewmh::checkClientMessage(const XClientMessageEvent &ce,
782 return true; 782 return true;
783 // ce.window = window to focus 783 // ce.window = window to focus
784 784
785 if (winclient->fbwindow()) { 785 // ce.data.l[0] == 2 means the request came from a pager
786 if (winclient->fbwindow() && (ce.data.l[0] == 2 ||
787 winclient->fbwindow()->allowsFocusFromClient())) {
786 winclient->focus(); 788 winclient->focus();
787 winclient->fbwindow()->raise(); 789 winclient->fbwindow()->raise();
788 } 790 }