diff options
author | Thomas Thurman <tthurman@gnome.org> | 2009-07-10 07:48:56 -0400 |
---|---|---|
committer | Thomas Thurman <tthurman@gnome.org> | 2009-07-10 07:48:56 -0400 |
commit | f218f30232dbe8a79c44e67fc9d89e9f3eb6b53c (patch) | |
tree | 2fe2b0e83f254ddc8cf5837558e52723d4154e6e /src/core/window.c | |
parent | 21415b6cfdde7770419740a26f1a685939995d7a (diff) | |
download | metacity-f218f30232dbe8a79c44e67fc9d89e9f3eb6b53c.tar.gz |
zeroth draft
Diffstat (limited to 'src/core/window.c')
-rw-r--r-- | src/core/window.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c index 6de86ee3..5bdaad6d 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -45,6 +45,7 @@ #include "constraints.h" #include "compositor.h" #include "effects.h" +#include "matching.h" #include <X11/Xatom.h> #include <string.h> @@ -970,9 +971,20 @@ meta_window_free (MetaWindow *window, guint32 timestamp) { GList *tmp; + MetaMatching matching; + int x, y, w, h; meta_verbose ("Unmanaging 0x%lx\n", window->xwindow); + /* XXX would be better to pass in a window! */ + meta_window_get_geometry (window, &x, &y, &w, &h); + matching.x = x; + matching.y = y; + matching.width = w; + matching.height = h; + matching.workspace = 177; /* dummy for now */ + meta_matching_save_to_role ("dummy", &matching); + if (window->display->compositor) meta_compositor_free_window (window->display->compositor, window); |