From d13f021b8bb2a6b8e49f69a370409e79a7f02213 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 4 Jan 2003 19:09:52 +0000 Subject: add support for wm_window_role --- src/client.hh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/client.hh') diff --git a/src/client.hh b/src/client.hh index 41ca3dd2..724cf518 100644 --- a/src/client.hh +++ b/src/client.hh @@ -171,6 +171,8 @@ private: std::string _app_name; //! The class of the window, can used for grouping std::string _app_class; + //! The specified role of the window, used for identification + std::string _role; //! The type of window (what its function is) WindowType _type; @@ -376,9 +378,11 @@ public: inline const std::string &appName() const { return _app_name; } //! Returns the class of the window inline const std::string &appClass() const { return _app_class; } + //! Returns the program-specified role of the window + inline const std::string &role() const { return _role; } //! Returns if the window can be focused /*! - @return true if the window can receive focusl otherwise, false + @return true if the window can receive focus; otherwise, false */ inline bool canFocus() const { return _can_focus; } //! Returns if the window has indicated that it needs urgent attention -- cgit v1.2.3