]> Dogcows Code - chaz/openbox/blobdiff - src/frame.hh
buttons press!
[chaz/openbox] / src / frame.hh
index c75194c44cd136333a2bb10728ae070646bb419c..c5a9a312adc28c5c7c84d92c65f6c8d85c7d2967 100644 (file)
@@ -94,11 +94,13 @@ private:
   otk::Surface  *_close_sur;
 
   std::string _layout; // layout of the titlebar
+
   bool _max_press;
   bool _desk_press;
   bool _iconify_press;
   bool _icon_press;
   bool _close_press;
+  unsigned int _press_button; // mouse button that started the press
 
   FrameGeometry geom;
   
@@ -168,6 +170,9 @@ public:
   //! Hides the frame
   void hide();
 
+  void buttonPressHandler(const XButtonEvent &e);
+  void buttonReleaseHandler(const XButtonEvent &e);
+
   //! Returns the MouseContext for the given window id
   /*!
     Returns '-1' if no valid mouse context exists in the frame for the given
This page took 0.021879 seconds and 4 git commands to generate.