aboutsummaryrefslogtreecommitdiff
path: root/src/WinClient.hh
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-07-20 18:05:40 (GMT)
committerrathnor <rathnor>2003-07-20 18:05:40 (GMT)
commit037bd174bfb107fef4657c949ce49c188090f3e7 (patch)
tree35d56080c76f4751946be2ddf95e4ce18e2a5bf2 /src/WinClient.hh
parent8500132b0a05d22470e63cee1d16191ecb138ecf (diff)
downloadfluxbox-037bd174bfb107fef4657c949ce49c188090f3e7.zip
fluxbox-037bd174bfb107fef4657c949ce49c188090f3e7.tar.bz2
fix focus and raising for transient windows in particular
Diffstat (limited to 'src/WinClient.hh')
-rw-r--r--src/WinClient.hh11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/WinClient.hh b/src/WinClient.hh
index c72208f..cedbdd7 100644
--- a/src/WinClient.hh
+++ b/src/WinClient.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: WinClient.hh,v 1.8 2003/06/23 14:16:05 rathnor Exp $ 22// $Id: WinClient.hh,v 1.9 2003/07/20 18:05:39 rathnor Exp $
23 23
24#ifndef WINCLIENT_HH 24#ifndef WINCLIENT_HH
25#define WINCLIENT_HH 25#define WINCLIENT_HH
@@ -70,7 +70,10 @@ public:
70 TransientList &transientList() { return transients; } 70 TransientList &transientList() { return transients; }
71 const TransientList &transientList() const { return transients; } 71 const TransientList &transientList() const { return transients; }
72 bool isTransient() const { return transient_for != 0; } 72 bool isTransient() const { return transient_for != 0; }
73 bool isModal() const { return modal; } 73
74 bool isModal() const { return m_modal > 0; }
75 void addModal(); // some transient of ours (or us) is modal
76 void removeModal(); // some transient (or us) is no longer modal
74 77
75 bool operator == (const FluxboxWindow &win) const { 78 bool operator == (const FluxboxWindow &win) const {
76 return (m_win == &win); 79 return (m_win == &win);
@@ -138,7 +141,9 @@ public:
138 enum { F_NOINPUT = 0, F_PASSIVE, F_LOCALLYACTIVE, F_GLOBALLYACTIVE }; 141 enum { F_NOINPUT = 0, F_PASSIVE, F_LOCALLYACTIVE, F_GLOBALLYACTIVE };
139 142
140private: 143private:
141 bool modal; 144 // number of transients which we are modal for
145 // or indicates that we are modal if don't have any transients
146 int m_modal;
142 147
143 std::string m_title, m_icon_title; 148 std::string m_title, m_icon_title;
144 std::string m_class_name, m_instance_name; 149 std::string m_class_name, m_instance_name;