summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-08-07 23:12:08 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-08-07 23:12:08 +0000
commitebae7a654e33d1c2870476bc385926571129ac1f (patch)
treee72a3e05bef805a43592e58fe16b65825f7945e1
parent1e0d6c33461048be2361d765fc088918eaef6447 (diff)
downloadmetacity-ebae7a654e33d1c2870476bc385926571129ac1f.tar.gz
metacity-ebae7a654e33d1c2870476bc385926571129ac1f.tar.bz2
update layer (meta_window_make_fullscreen): update layer
2002-08-07 Havoc Pennington <hp@redhat.com> * src/window.c (meta_window_unmake_fullscreen): update layer (meta_window_make_fullscreen): update layer * src/stack.c (compute_layer): put window on fullscreen layer if fullscreen
-rw-r--r--ChangeLog10
-rw-r--r--src/stack.c9
-rw-r--r--src/window.c4
3 files changed, 18 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index b36bb7c..31a86df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,15 @@
+2002-08-07 Havoc Pennington <hp@redhat.com>
+
+ * src/window.c (meta_window_unmake_fullscreen): update layer
+ (meta_window_make_fullscreen): update layer
+
+ * src/stack.c (compute_layer): put window on fullscreen layer if
+ fullscreen
+
2002-08-06 Craig Black <blackc@speakeasy.net>
* src/window.c: (meta_window_client_message): implement
- _NET_WM_MOVERESIZE enhancements, see #90077.
+ _NET_WM_MOVERESIZE enhancements, see #90077.
2002-08-06 Havoc Pennington <hp@redhat.com>
diff --git a/src/stack.c b/src/stack.c
index c55ef45..4b8c00a 100644
--- a/src/stack.c
+++ b/src/stack.c
@@ -275,10 +275,13 @@ compute_layer (MetaWindow *window)
break;
default:
- window->layer = META_LAYER_NORMAL;
+ if (window->fullscreen)
+ window->layer = META_LAYER_FULLSCREEN;
+ else
+ window->layer = META_LAYER_NORMAL;
break;
- }
-
+ }
+
meta_topic (META_DEBUG_STACK, "Window %s on layer %d\n",
window->desc, window->layer);
}
diff --git a/src/window.c b/src/window.c
index 5bd6522..cc51234 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1632,7 +1632,7 @@ meta_window_make_fullscreen (MetaWindow *window)
window->fullscreen = TRUE;
- /* FIXME why did I put this here? */
+ meta_window_update_layer (window);
meta_window_raise (window);
/* save size/pos as appropriate args for move_resize */
@@ -1661,6 +1661,8 @@ meta_window_unmake_fullscreen (MetaWindow *window)
window->fullscreen = FALSE;
+ meta_window_update_layer (window);
+
meta_window_move_resize (window,
TRUE,
window->saved_rect.x,