aboutsummaryrefslogtreecommitdiff
path: root/src/WinClient.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-04-05 16:05:39 (GMT)
committermarkt <markt>2007-04-05 16:05:39 (GMT)
commitd4f33533543690f12ad9eea62ea9b634a89340fb (patch)
treecc879e2439ec92172ad75f9eb61d3ae17bff21ae /src/WinClient.cc
parent9d7c562478b553c8f0f71acdfa93bda2f0a5ce5d (diff)
downloadfluxbox-d4f33533543690f12ad9eea62ea9b634a89340fb.zip
fluxbox-d4f33533543690f12ad9eea62ea9b634a89340fb.tar.bz2
some minor changes and reorganization
Diffstat (limited to 'src/WinClient.cc')
-rw-r--r--src/WinClient.cc7
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
720bool WinClient::isFocused() const {
721 return (fbwindow() ?
722 fbwindow()->isFocused() && &fbwindow()->winClient() == this :
723 false);
724}
725
719void WinClient::updateWMProtocols() { 726void WinClient::updateWMProtocols() {
720 Atom *proto = 0; 727 Atom *proto = 0;
721 int num_return = 0; 728 int num_return = 0;