summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorrhp <rhp>2001-06-11 03:24:20 +0000
committerrhp <rhp>2001-06-11 03:24:20 +0000
commit9cb0dc3d6593272550c06e6224501473ff6ac54d (patch)
treee7fa9c800e6e41c9b272834939f97cfd9611cfb6 /src/window.h
parentf14221e842b06369ede624cafccbff4073988f5a (diff)
downloadmetacity-9cb0dc3d6593272550c06e6224501473ff6ac54d.tar.gz
metacity-9cb0dc3d6593272550c06e6224501473ff6ac54d.tar.bz2
...
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/src/window.h b/src/window.h
index cd44a96..c214674 100644
--- a/src/window.h
+++ b/src/window.h
@@ -77,17 +77,15 @@ struct _MetaWindow
* have no stupid viewports)
*/
guint on_all_workspaces : 1;
-
- /* Mapped is what we think the mapped state should be;
- * so if we get UnmapNotify and mapped == TRUE then
- * it's a withdraw, if mapped == FALSE the UnmapNotify
- * is caused by us.
- */
- guint mapped : 1 ;
/* Minimize is the state controlled by the minimize button */
guint minimized : 1;
+ /* Whether the window is mapped; actual server-side state
+ * see also unmaps_pending
+ */
+ guint mapped : 1;
+
/* Iconic is the state in WM_STATE; happens for workspaces/shading
* in addition to minimize
*/
@@ -116,7 +114,20 @@ struct _MetaWindow
* determines whether we draw the focus
*/
guint has_focus : 1;
-
+
+ /* Track whether the user has ever manually modified
+ * the window; if so, we remove some constraints
+ * that exist on program modifications.
+ */
+ guint user_has_resized : 1;
+ guint user_has_moved : 1;
+
+ /* Number of UnmapNotify that are caused by us, if
+ * we get UnmapNotify with none pending then the client
+ * is withdrawing the window.
+ */
+ int unmaps_pending;
+
/* The size we set the window to last (i.e. what we believe
* to be its actual size on the server). The x, y are
* the actual server-side x,y so are relative to the frame