X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fframe.hh;h=a36a6eec531cbe3ea46c318bb5ae67da81ff6590;hb=8735c12d9633738a5150c451457471d797fa9bf1;hp=37eee7eaecaf9573767e521f261d44a0160f6ead;hpb=68194ce957db36ead19a39fdc7636a220befafe9;p=chaz%2Fopenbox diff --git a/src/frame.hh b/src/frame.hh index 37eee7ea..a36a6eec 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; @@ -77,9 +75,6 @@ private: */ 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,10 +88,22 @@ public: //! Set the style to decorate the frame with virtual void setStyle(otk::Style *style); + //! Empty overridden method to prevent automatic alignment of children + virtual void adjust(); + + //! Displays focused decorations + virtual void focus(); + //! Displays unfocused decorations + virtual void unfocus(); + + void setTitle(const std::string &text); + //! 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.