From 68eb780c758ce1ed07f12d825ade0e8e67e46e3f Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 29 May 2002 04:17:40 +0000 Subject: [PATCH] add code to also guess that client wants to come out of fullscreen, then 2002-05-29 Havoc Pennington * 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. --- ChangeLog | 6 ++++++ src/window.c | 19 +++++++++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 113fabf65..7747484b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-05-29 Havoc Pennington + + * 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. + 2002-05-29 Havoc Pennington * src/window.c (meta_window_move_resize_internal): guess if a diff --git a/src/window.c b/src/window.c index 79b7f6b34..00b4931c2 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);