summaryrefslogtreecommitdiff
path: root/src/frames.h
diff options
context:
space:
mode:
authorrhp <rhp>2001-06-20 04:29:28 +0000
committerrhp <rhp>2001-06-20 04:29:28 +0000
commit5fee6341216809b2ac761f95826642cfb43b1985 (patch)
treeeedbafbe72e89c9e6e605bea05ff02f3f5b95465 /src/frames.h
parentca69bef032ad7952f0020663ac24a38d7d1563b3 (diff)
downloadmetacity-5fee6341216809b2ac761f95826642cfb43b1985.tar.gz
metacity-5fee6341216809b2ac761f95826642cfb43b1985.tar.bz2
...
Diffstat (limited to 'src/frames.h')
-rw-r--r--src/frames.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/frames.h b/src/frames.h
index e7d8f3c..a608ad8 100644
--- a/src/frames.h
+++ b/src/frames.h
@@ -44,6 +44,13 @@ typedef enum
META_FRAME_CONTROL_RESIZE_E
} MetaFrameControl;
+typedef enum
+{
+ META_FRAME_STATUS_NORMAL,
+ META_FRAME_STATUS_MOVING
+
+} MetaFrameStatus;
+
/* This is one widget that manages all the window frames
* as subwindows.
*/
@@ -71,6 +78,16 @@ struct _MetaFrames
int text_height;
GHashTable *frames;
+
+ /* The below is all for grabs */
+ MetaFrameStatus grab_status;
+ MetaUIFrame *grab_frame;
+ /* initial mouse position for drags */
+ int start_root_x, start_root_y;
+ /* initial window size or initial window position for drags */
+ int start_window_x, start_window_y;
+ /* button doing the dragging */
+ int start_button;
};
struct _MetaFramesClass