diff options
author | markt <markt> | 2007-11-05 17:05:58 (GMT) |
---|---|---|
committer | markt <markt> | 2007-11-05 17:05:58 (GMT) |
commit | 97f7c3e1b59b9a94e36a78d97c141f6a05f43e20 (patch) | |
tree | 982ba8f35083fb54e5058f564ec8e301d8a229dc /src/Focusable.hh | |
parent | 2c4e1f9a024433396f17ea5f3ef3fda46e0d8edd (diff) | |
download | fluxbox_pavel-97f7c3e1b59b9a94e36a78d97c141f6a05f43e20.zip fluxbox_pavel-97f7c3e1b59b9a94e36a78d97c141f6a05f43e20.tar.bz2 |
various refactoring and minor changes
Diffstat (limited to 'src/Focusable.hh')
-rw-r--r-- | src/Focusable.hh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Focusable.hh b/src/Focusable.hh index cd2ad49..3903e25 100644 --- a/src/Focusable.hh +++ b/src/Focusable.hh | |||
@@ -46,6 +46,17 @@ public: | |||
46 | m_titlesig(*this), m_focussig(*this), m_diesig(*this), | 46 | m_titlesig(*this), m_focussig(*this), m_diesig(*this), |
47 | m_attentionsig(*this) { } | 47 | m_attentionsig(*this) { } |
48 | virtual ~Focusable() { } | 48 | virtual ~Focusable() { } |
49 | |||
50 | enum WindowType { | ||
51 | TYPE_NORMAL, | ||
52 | TYPE_DOCK, | ||
53 | TYPE_DESKTOP, | ||
54 | TYPE_SPLASH, | ||
55 | TYPE_DIALOG, | ||
56 | TYPE_MENU, | ||
57 | TYPE_TOOLBAR | ||
58 | }; | ||
59 | |||
49 | /** | 60 | /** |
50 | * Take focus. | 61 | * Take focus. |
51 | * @return true if the focuable took focus | 62 | * @return true if the focuable took focus |
@@ -87,6 +98,9 @@ public: | |||
87 | /// @return wm role string (for pattern matching) | 98 | /// @return wm role string (for pattern matching) |
88 | virtual std::string getWMRole() const { return "Focusable"; } | 99 | virtual std::string getWMRole() const { return "Focusable"; } |
89 | 100 | ||
101 | /// @return window type | ||
102 | virtual WindowType getWindowType() const { return TYPE_NORMAL; } | ||
103 | |||
90 | /// @return whether this window is a transient (for pattern matching) | 104 | /// @return whether this window is a transient (for pattern matching) |
91 | virtual bool isTransient() const { return false; } | 105 | virtual bool isTransient() const { return false; } |
92 | 106 | ||