summaryrefslogtreecommitdiff
path: root/src/client.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-10 04:08:26 +0000
committerDana Jansens <danakj@orodu.net>2002-11-10 04:08:26 +0000
commitb9cac2146e1dfe54cb6c0ce647d6c7d58d17de54 (patch)
treea304e1d573673762877cdf66be912c1f5afd5246 /src/client.hh
parentf2ae1c3b176e02eeb109478d3cfbf89647d66100 (diff)
WINDOWS GET FRAMES FRAME SHOW UP THEY WORK HUZZAH SOON THEYLL BE LIKE OLD TIMES!
Diffstat (limited to 'src/client.hh')
-rw-r--r--src/client.hh19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/client.hh b/src/client.hh
index 1a6d3b1a..79c018fd 100644
--- a/src/client.hh
+++ b/src/client.hh
@@ -18,6 +18,8 @@ extern "C" {
namespace ob {
+class OBFrame;
+
//! Maintains the state of a client window.
/*!
OBClient maintains the state of a client window. The state consists of the
@@ -32,6 +34,10 @@ namespace ob {
*/
class OBClient {
public:
+
+ //! The frame window which decorates around the client window
+ OBFrame *frame;
+
//! Possible window types
enum WindowType { Type_Desktop, //!< A desktop (bottom-most window)
Type_Dock, //!< A dock bar/panel window
@@ -107,7 +113,14 @@ public:
State_Toggle //!< _NET_WM_STATE_TOGGLE
};
+ //! The event mask to grab on client windows
+ static const long event_mask = PropertyChangeMask | FocusChangeMask |
+ StructureNotifyMask;
+
private:
+ //! The screen number on which the client resides
+ int _screen;
+
//! The actual window that this class is wrapping up
Window _window;
@@ -272,11 +285,15 @@ public:
//! Constructs a new OBClient object around a specified window id
/*!
@param window The window id that the OBClient class should handle
+ @param screen The screen on which the window resides
*/
- OBClient(Window window);
+ OBClient(int screen, Window window);
//! Destroys the OBClient object
virtual ~OBClient();
+ //! Returns the screen on which the clien resides
+ inline int screen() const { return _screen; }
+
//! Returns the window id that the OBClient object is handling
inline Window window() const { return _window; }