diff options
author | markt <markt> | 2007-06-30 17:06:29 (GMT) |
---|---|---|
committer | markt <markt> | 2007-06-30 17:06:29 (GMT) |
commit | 103b55e600aff58000ed09ff2b601daf97164167 (patch) | |
tree | b058cb0737654556daa95a7fcace87313c3b511f /src/WinClient.hh | |
parent | 998b23acf220f7bfa2117f8446a4f3a179b32d0a (diff) | |
download | fluxbox-103b55e600aff58000ed09ff2b601daf97164167.zip fluxbox-103b55e600aff58000ed09ff2b601daf97164167.tar.bz2 |
fix support for _NET_WM_STATE_MODAL
Diffstat (limited to 'src/WinClient.hh')
-rw-r--r-- | src/WinClient.hh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/WinClient.hh b/src/WinClient.hh index 4395f63..d3555d1 100644 --- a/src/WinClient.hh +++ b/src/WinClient.hh | |||
@@ -58,9 +58,6 @@ public: | |||
58 | // not aware of anything that makes this false at present | 58 | // not aware of anything that makes this false at present |
59 | inline bool isClosable() const { return true; } | 59 | inline bool isClosable() const { return true; } |
60 | 60 | ||
61 | void addModal(); // some transient of ours (or us) is modal | ||
62 | void removeModal(); // some transient (or us) is no longer modal | ||
63 | |||
64 | /// updates from wm class hints | 61 | /// updates from wm class hints |
65 | void updateWMClassHint(); | 62 | void updateWMClassHint(); |
66 | void updateWMProtocols(); | 63 | void updateWMProtocols(); |
@@ -121,7 +118,9 @@ public: | |||
121 | inline const TransientList &transientList() const { return transients; } | 118 | inline const TransientList &transientList() const { return transients; } |
122 | inline bool isTransient() const { return transient_for != 0; } | 119 | inline bool isTransient() const { return transient_for != 0; } |
123 | 120 | ||
124 | inline bool isModal() const { return m_modal > 0; } | 121 | inline bool isModal() const { return m_modal_count > 0; } |
122 | inline bool isStateModal() const { return m_modal; } | ||
123 | void setStateModal(bool state); | ||
125 | 124 | ||
126 | inline int gravity() const { return m_win_gravity; } | 125 | inline int gravity() const { return m_win_gravity; } |
127 | 126 | ||
@@ -163,9 +162,14 @@ private: | |||
163 | /// removes client from any waiting list and clears empty waiting lists | 162 | /// removes client from any waiting list and clears empty waiting lists |
164 | void removeTransientFromWaitingList(); | 163 | void removeTransientFromWaitingList(); |
165 | 164 | ||
165 | // some transient of ours (or us) is modal | ||
166 | void addModal() { ++m_modal_count; } | ||
167 | // some transient (or us) is no longer modal | ||
168 | void removeModal() { --m_modal_count; } | ||
169 | |||
166 | // number of transients which we are modal for | 170 | // number of transients which we are modal for |
167 | // or indicates that we are modal if don't have any transients | 171 | int m_modal_count; |
168 | int m_modal; | 172 | bool m_modal; |
169 | bool send_focus_message, send_close_message; | 173 | bool send_focus_message, send_close_message; |
170 | 174 | ||
171 | int m_win_gravity; | 175 | int m_win_gravity; |