X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fframe.hh;h=01f706de8b5850255e33b3955e511e693a091069;hb=385de86d903c95e9897bd106b04e3ef1f70d9d2d;hp=5f70b643e372ca09f7967fde8d3f3d8c554d2038;hpb=2ae2b257d39ea62640c2590f794e4275c6db1cd4;p=chaz%2Fopenbox diff --git a/src/frame.hh b/src/frame.hh index 5f70b643..01f706de 100644 --- a/src/frame.hh +++ b/src/frame.hh @@ -33,10 +33,8 @@ class OBFrame : public otk::OtkWidget, public OBWidget { public: //! The event mask to grab on frame windows - static const long event_mask = EnterWindowMask | LeaveWindowMask | - ButtonPressMask | ButtonReleaseMask | - ButtonMotionMask; - + static const long event_mask = EnterWindowMask | LeaveWindowMask; + private: OBClient *_client; const otk::ScreenInfo *_screen; @@ -69,17 +67,6 @@ private: */ OBClient::DecorationFlags _decorations; - //! Reparents the client window from the root window onto the frame - void grabClient(); - //! Reparents the client window back to the root window - /*! - @param remap Re-map the client window when we're done reparenting? - */ - void releaseClient(bool remap); - - //! Shape the frame window to the client window - void adjustShape(); - public: //! Constructs an OBFrame object, and reparents the client to itself /*! @@ -93,8 +80,9 @@ public: //! Set the style to decorate the frame with virtual void setStyle(otk::Style *style); - //! Realign children + //! Empty overridden method to prevent automatic alignment of children virtual void adjust(); + //! Displays focused decorations virtual void focus(); //! Displays unfocused decorations @@ -102,10 +90,17 @@ public: void setTitle(const std::string &text); + //! Reparents the client window from the root window onto the frame + void grabClient(); + //! Reparents the client window back to the root window + void releaseClient(); + //! Update the frame's size to match the client void adjustSize(); //! Update the frame's position to match the client void adjustPosition(); + //! Shape the frame window to the client window + void adjustShape(); //! Applies gravity to the client's position to find where the frame should //! be positioned.