X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fclient.hh;h=83f5f1a025830fd333d4e0fc9e80e2bfbdc14780;hb=7175ac2b5aec7aface6a2f86df32dd0386e0cc05;hp=963cff52ea8525f68d5f804ddf70c01dd60deade;hpb=a93f06f5b3162e59c04074a14bd3702e4bb82133;p=chaz%2Fopenbox diff --git a/src/client.hh b/src/client.hh index 963cff52..83f5f1a0 100644 --- a/src/client.hh +++ b/src/client.hh @@ -179,7 +179,7 @@ private: OBClient::List _transients; //! The desktop on which the window resides (0xffffffff for all desktops) - unsigned long _desktop; + long _desktop; //! Normal window title std::string _title; // XXX: Have to keep track if this string is Utf8 or not @@ -399,7 +399,7 @@ public: This value is a 0-based index.
A value of 0xffffffff indicates that the window exists on all desktops. */ - inline unsigned long desktop() const { return _desktop; } + inline long desktop() const { return _desktop; } //! Returns the window's title inline const std::string &title() const { return _title; } //! Returns the window's title when it is iconified @@ -442,6 +442,9 @@ public: //! Returns the functions that the user can perform on the window inline FunctionFlags funtions() const { return _functions; } + //! Return the client this window is transient for + inline OBClient *transientFor() const { return _transient_for; } + //! Returns if the window is modal /*! If the window is modal, then no other windows that it is related to can get @@ -532,7 +535,6 @@ public: virtual void unmapHandler(const XUnmapEvent &e); virtual void destroyHandler(const XDestroyWindowEvent &e); virtual void reparentHandler(const XReparentEvent &e); - virtual void mapRequestHandler(const XMapRequestEvent &e); #if defined(SHAPE) virtual void shapeHandler(const XShapeEvent &e); #endif // SHAPE