From 9f3f5720ff0bea8210b2f9102f18770dd465d78e Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 11 Aug 2002 22:33:41 +0000 Subject: fixed instance and classname --- src/Window.hh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/Window.hh b/src/Window.hh index 5536254..549971e 100644 --- a/src/Window.hh +++ b/src/Window.hh @@ -22,11 +22,15 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.hh,v 1.25 2002/08/04 15:55:13 fluxgen Exp $ +// $Id: Window.hh,v 1.26 2002/08/11 22:33:41 fluxgen Exp $ #ifndef WINDOW_HH #define WINDOW_HH +#include "BaseDisplay.hh" +#include "Timer.hh" +#include "Windowmenu.hh" + #include #include @@ -34,10 +38,6 @@ #include #endif // SHAPE -#include "BaseDisplay.hh" -#include "Timer.hh" -#include "Windowmenu.hh" - #include #include @@ -173,6 +173,8 @@ public: inline unsigned int getClientHeight() const { return client.height; } inline unsigned int getClientWidth() const { return client.width; } inline unsigned int getTitleHeight() const { return frame.title_h; } + const std::string className() const { return m_class_name; } + const std::string instanceName() const { return m_instance_name; } bool isLowerTab() const; //@} @@ -183,7 +185,7 @@ public: bool validateClient(); bool setInputFocus(); void setTab(bool flag); - void setFocusFlag(bool); + void setFocusFlag(bool flag); void iconify(); void deiconify(bool = true, bool = true); void close(); @@ -240,6 +242,10 @@ private: BImageControl *image_ctrl; //image control for rendering + // got from WM_CLASS + std::string m_instance_name; + std::string m_class_name; + //Window state bool moving, resizing, shaded, maximized, visible, iconic, transient, focused, stuck, modal, send_focus_message, managed; -- cgit v0.11.2