diff options
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 | ||