summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-05-29 04:17:40 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-05-29 04:17:40 +0000
commit68eb780c758ce1ed07f12d825ade0e8e67e46e3f (patch)
treea8bf492927ebb190801df6aec3e765d83803708d /src/window.c
parent03498549b2c7ee6ef5161f8b404df257c3847f97 (diff)
downloadmetacity-68eb780c758ce1ed07f12d825ade0e8e67e46e3f.tar.gz
metacity-68eb780c758ce1ed07f12d825ade0e8e67e46e3f.tar.bz2
add code to also guess that client wants to come out of fullscreen, then
2002-05-29 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_move_resize_internal): add code to also guess that client wants to come out of fullscreen, then #if 0 the whole deal, I'm not sure it's such a good idea.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 79b7f6b..00b4931 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1871,11 +1871,13 @@ meta_window_move_resize_internal (MetaWindow *window,
do_gravity_adjust = (flags & META_DO_GRAVITY_ADJUST) != 0;
is_user_action = (flags & META_USER_MOVE_RESIZE) != 0;
+#if 0
xinerama = meta_screen_get_xinerama_for_window (window->screen,
window);
- /* Try to guess if a client meant to be fullscreen and use
- * the real fullscreen state
+ /* Try to guess if a client meant to be fullscreen (or not) and
+ * toggle the real fullscreen state in response. This is
+ * probably a bit dubious.
*/
if (is_configure_request &&
!window->decorated &&
@@ -1893,6 +1895,19 @@ meta_window_move_resize_internal (MetaWindow *window,
window->desc);
meta_window_make_fullscreen (window);
}
+ else if (is_configure_request &&
+ window->fullscreen &&
+ (w != xinerama->width ||
+ h != xinerama->height ||
+ root_x_nw != xinerama->x_origin ||
+ root_y_nw != xinerama->y_origin))
+ {
+ meta_topic (META_DEBUG_GEOMETRY,
+ "Guessing that window %s no longer wants to be fullscreen\n",
+ window->desc);
+ meta_window_unmake_fullscreen (window);
+ }
+#endif
/* We don't need it in the idle queue anymore. */
meta_window_unqueue_move_resize (window);