X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fframe.hh;h=b204567ed75fcadbccfc2090b9455f554ec4a926;hb=6062fe404ce5f2505494132d5454370d696625ca;hp=7313c3a12dfe8013b03fcb8cf3005f12b5f1ade4;hpb=745e840547b5443ecfb9b6f0a4f14b0d035d59c2;p=chaz%2Fopenbox diff --git a/src/frame.hh b/src/frame.hh index 7313c3a1..b204567e 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; @@ -72,17 +70,8 @@ private: //! 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); + void releaseClient(); - //! Shape the frame window to the client window - void adjustShape(); - - //! Grabs or ungrabs buttons on the frame - void grabButtons(bool grab); - public: //! Constructs an OBFrame object, and reparents the client to itself /*! @@ -110,6 +99,8 @@ public: 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.