diff options
author | markt <markt> | 2007-03-21 21:48:34 (GMT) |
---|---|---|
committer | markt <markt> | 2007-03-21 21:48:34 (GMT) |
commit | 51bcee666516ffdbe205b0e74ca209f82fcb1f31 (patch) | |
tree | 6f4b21b34882178962958bf64ef9c9072abced50 /src/WinClient.hh | |
parent | 54dee2bff7242b2f6d3f6814679d0024e3189e86 (diff) | |
download | fluxbox-51bcee666516ffdbe205b0e74ca209f82fcb1f31.zip fluxbox-51bcee666516ffdbe205b0e74ca209f82fcb1f31.tar.bz2 |
added Focusable.hh -- a base class for all focusable windows
Diffstat (limited to 'src/WinClient.hh')
-rw-r--r-- | src/WinClient.hh | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/WinClient.hh b/src/WinClient.hh index 40daa8e..0082bb0 100644 --- a/src/WinClient.hh +++ b/src/WinClient.hh | |||
@@ -24,6 +24,7 @@ | |||
24 | #ifndef WINCLIENT_HH | 24 | #ifndef WINCLIENT_HH |
25 | #define WINCLIENT_HH | 25 | #define WINCLIENT_HH |
26 | 26 | ||
27 | #include "Focusable.hh" | ||
27 | #include "Window.hh" | 28 | #include "Window.hh" |
28 | #include "Subject.hh" | 29 | #include "Subject.hh" |
29 | #include "FbWindow.hh" | 30 | #include "FbWindow.hh" |
@@ -35,7 +36,7 @@ class BScreen; | |||
35 | class Strut; | 36 | class Strut; |
36 | 37 | ||
37 | /// Holds client window info | 38 | /// Holds client window info |
38 | class WinClient:public FbTk::FbWindow { | 39 | class WinClient: public Focusable, public FbTk::FbWindow { |
39 | public: | 40 | public: |
40 | typedef std::list<WinClient *> TransientList; | 41 | typedef std::list<WinClient *> TransientList; |
41 | // this structure only contains 3 elements... the Motif 2.0 structure contains | 42 | // this structure only contains 3 elements... the Motif 2.0 structure contains |
@@ -129,15 +130,6 @@ public: | |||
129 | 130 | ||
130 | inline bool isModal() const { return m_modal > 0; } | 131 | inline bool isModal() const { return m_modal > 0; } |
131 | 132 | ||
132 | const FbTk::FbPixmap &iconPixmap() const { return m_icon_pixmap; } | ||
133 | const FbTk::FbPixmap &iconMask() const { return m_icon_mask; } | ||
134 | const bool usePixmap() const { return m_icon_pixmap.drawable() != None; } | ||
135 | const bool useMask() const { return m_icon_mask.drawable() != None; } | ||
136 | |||
137 | inline const std::string &title() const { return m_title; } | ||
138 | inline const std::string &iconTitle() const { return m_icon_title; } | ||
139 | inline const FluxboxWindow *fbwindow() const { return m_win; } | ||
140 | inline FluxboxWindow *fbwindow() { return m_win; } | ||
141 | inline int gravity() const { return m_win_gravity; } | 133 | inline int gravity() const { return m_win_gravity; } |
142 | 134 | ||
143 | bool hasGroupLeftWindow() const; | 135 | bool hasGroupLeftWindow() const; |
@@ -188,8 +180,6 @@ private: | |||
188 | /// removes client from any waiting list and clears empty waiting lists | 180 | /// removes client from any waiting list and clears empty waiting lists |
189 | void removeTransientFromWaitingList(); | 181 | void removeTransientFromWaitingList(); |
190 | 182 | ||
191 | FluxboxWindow *m_win; | ||
192 | |||
193 | // number of transients which we are modal for | 183 | // number of transients which we are modal for |
194 | // or indicates that we are modal if don't have any transients | 184 | // or indicates that we are modal if don't have any transients |
195 | int m_modal; | 185 | int m_modal; |
@@ -197,13 +187,9 @@ private: | |||
197 | 187 | ||
198 | int m_win_gravity; | 188 | int m_win_gravity; |
199 | 189 | ||
200 | std::string m_title, m_icon_title; | ||
201 | std::string m_class_name, m_instance_name; | 190 | std::string m_class_name, m_instance_name; |
202 | bool m_title_override, m_icon_title_override; | 191 | bool m_title_override, m_icon_title_override; |
203 | 192 | ||
204 | FbTk::FbPixmap m_icon_pixmap; | ||
205 | FbTk::FbPixmap m_icon_mask; | ||
206 | |||
207 | FluxboxWindow::BlackboxHints *m_blackbox_hint; | 193 | FluxboxWindow::BlackboxHints *m_blackbox_hint; |
208 | MwmHints *m_mwm_hint; | 194 | MwmHints *m_mwm_hint; |
209 | 195 | ||