summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-08-12 21:32:13 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-08-12 21:32:13 +0000
commit27e35b8bcde23717494af4f651eedabfae2d6b96 (patch)
treea1905e1484bc72a00e3caa3b76776ee4062ebb75 /src/window.h
parent501264647eb4241127f6cee9c9bfc16a6e75d193 (diff)
downloadmetacity-27e35b8bcde23717494af4f651eedabfae2d6b96.tar.gz
metacity-27e35b8bcde23717494af4f651eedabfae2d6b96.tar.bz2
window is in fullscreen layer if any member of its group is fullscreen
2002-08-12 Havoc Pennington <hp@redhat.com> * src/stack.c (compute_layer): window is in fullscreen layer if any member of its group is fullscreen * src/window.c (meta_window_unmake_fullscreen): update layer for whole window group (meta_window_make_fullscreen): ditto * src/util.c (meta_unsigned_long_hash): move hash/equal funcs for Window in here. * src/group.c: track window groups so we can do stuff with them.
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h
index f10e632..847204c 100644
--- a/src/window.h
+++ b/src/window.h
@@ -29,6 +29,8 @@
#include <X11/Xutil.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
+typedef struct _MetaGroup MetaGroup;
+
typedef void (*MetaWindowForeachFunc) (MetaWindow *window,
void *data);
@@ -252,6 +254,9 @@ struct _MetaWindow
/* Current dialog open for this window */
int dialog_pid;
int dialog_pipe;
+
+ /* maintained by group.c */
+ MetaGroup *cached_group;
};
#define META_WINDOW_ALLOWS_MOVE(w) ((w)->has_move_func && !(w)->maximized && !(w)->fullscreen)