diff options
author | markt <markt> | 2007-04-05 16:05:39 (GMT) |
---|---|---|
committer | markt <markt> | 2007-04-05 16:05:39 (GMT) |
commit | d4f33533543690f12ad9eea62ea9b634a89340fb (patch) | |
tree | cc879e2439ec92172ad75f9eb61d3ae17bff21ae /src/WinClient.cc | |
parent | 9d7c562478b553c8f0f71acdfa93bda2f0a5ce5d (diff) | |
download | fluxbox-d4f33533543690f12ad9eea62ea9b634a89340fb.zip fluxbox-d4f33533543690f12ad9eea62ea9b634a89340fb.tar.bz2 |
some minor changes and reorganization
Diffstat (limited to 'src/WinClient.cc')
-rw-r--r-- | src/WinClient.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/WinClient.cc b/src/WinClient.cc index de6c213..1cdd4ae 100644 --- a/src/WinClient.cc +++ b/src/WinClient.cc | |||
@@ -25,6 +25,7 @@ | |||
25 | 25 | ||
26 | #include "Window.hh" | 26 | #include "Window.hh" |
27 | #include "fluxbox.hh" | 27 | #include "fluxbox.hh" |
28 | #include "FocusControl.hh" | ||
28 | #include "Screen.hh" | 29 | #include "Screen.hh" |
29 | #include "FbAtoms.hh" | 30 | #include "FbAtoms.hh" |
30 | 31 | ||
@@ -716,6 +717,12 @@ bool WinClient::focus() { | |||
716 | return fbwindow()->setCurrentClient(*this, true); | 717 | return fbwindow()->setCurrentClient(*this, true); |
717 | } | 718 | } |
718 | 719 | ||
720 | bool WinClient::isFocused() const { | ||
721 | return (fbwindow() ? | ||
722 | fbwindow()->isFocused() && &fbwindow()->winClient() == this : | ||
723 | false); | ||
724 | } | ||
725 | |||
719 | void WinClient::updateWMProtocols() { | 726 | void WinClient::updateWMProtocols() { |
720 | Atom *proto = 0; | 727 | Atom *proto = 0; |
721 | int num_return = 0; | 728 | int num_return = 0; |