diff options
author | markt <markt> | 2007-03-30 20:29:46 (GMT) |
---|---|---|
committer | markt <markt> | 2007-03-30 20:29:46 (GMT) |
commit | 3ab6b48974c32c742bda5dc6c3f217f9d58e3d99 (patch) | |
tree | 7a9852f2513e4677e636cd6261c87ba3002b3ab4 /src/Focusable.hh | |
parent | aef362350332d80febe1a4b72ee9b4b962ed527b (diff) | |
download | fluxbox-3ab6b48974c32c742bda5dc6c3f217f9d58e3d99.zip fluxbox-3ab6b48974c32c742bda5dc6c3f217f9d58e3d99.tar.bz2 |
pattern matching for window cycling
Diffstat (limited to 'src/Focusable.hh')
-rw-r--r-- | src/Focusable.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Focusable.hh b/src/Focusable.hh index d7c1ae8..852e1c8 100644 --- a/src/Focusable.hh +++ b/src/Focusable.hh | |||
@@ -38,6 +38,7 @@ class Focusable: public FbTk::ITypeAheadable { | |||
38 | public: | 38 | public: |
39 | Focusable(BScreen &scr, FluxboxWindow *fbwin = 0): | 39 | Focusable(BScreen &scr, FluxboxWindow *fbwin = 0): |
40 | m_screen(scr), m_fbwin(fbwin), | 40 | m_screen(scr), m_fbwin(fbwin), |
41 | m_instance_name("fluxbox"), m_class_name("fluxbox"), | ||
41 | m_focused(false), m_titlesig(*this) { } | 42 | m_focused(false), m_titlesig(*this) { } |
42 | virtual ~Focusable() { } | 43 | virtual ~Focusable() { } |
43 | 44 | ||
@@ -53,6 +54,11 @@ public: | |||
53 | inline const FluxboxWindow *fbwindow() const { return m_fbwin; } | 54 | inline const FluxboxWindow *fbwindow() const { return m_fbwin; } |
54 | inline FluxboxWindow *fbwindow() { return m_fbwin; } | 55 | inline FluxboxWindow *fbwindow() { return m_fbwin; } |
55 | 56 | ||
57 | // for pattern matching | ||
58 | virtual const std::string &getWMClassClass() const { return m_class_name; } | ||
59 | virtual const std::string &getWMClassName() const { return m_instance_name; } | ||
60 | virtual std::string getWMRole() const { return "Focusable"; } | ||
61 | |||
56 | // so we can make nice buttons, menu entries, etc. | 62 | // so we can make nice buttons, menu entries, etc. |
57 | virtual const FbTk::PixmapWithMask &icon() const { return m_icon; } | 63 | virtual const FbTk::PixmapWithMask &icon() const { return m_icon; } |
58 | virtual const std::string &title() const { return m_title; } | 64 | virtual const std::string &title() const { return m_title; } |
@@ -75,8 +81,8 @@ protected: | |||
75 | BScreen &m_screen; | 81 | BScreen &m_screen; |
76 | FluxboxWindow *m_fbwin; | 82 | FluxboxWindow *m_fbwin; |
77 | 83 | ||
84 | std::string m_title, m_instance_name, m_class_name; | ||
78 | bool m_focused; | 85 | bool m_focused; |
79 | std::string m_title; | ||
80 | FbTk::PixmapWithMask m_icon; | 86 | FbTk::PixmapWithMask m_icon; |
81 | 87 | ||
82 | FocusSubject m_titlesig; | 88 | FocusSubject m_titlesig; |