mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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.
This commit is contained in:
parent
03498549b2
commit
68eb780c75
@ -1,3 +1,9 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2002-05-29 Havoc Pennington <hp@pobox.com>
|
2002-05-29 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* src/window.c (meta_window_move_resize_internal): guess if a
|
* src/window.c (meta_window_move_resize_internal): guess if a
|
||||||
|
19
src/window.c
19
src/window.c
@ -1871,11 +1871,13 @@ meta_window_move_resize_internal (MetaWindow *window,
|
|||||||
do_gravity_adjust = (flags & META_DO_GRAVITY_ADJUST) != 0;
|
do_gravity_adjust = (flags & META_DO_GRAVITY_ADJUST) != 0;
|
||||||
is_user_action = (flags & META_USER_MOVE_RESIZE) != 0;
|
is_user_action = (flags & META_USER_MOVE_RESIZE) != 0;
|
||||||
|
|
||||||
|
#if 0
|
||||||
xinerama = meta_screen_get_xinerama_for_window (window->screen,
|
xinerama = meta_screen_get_xinerama_for_window (window->screen,
|
||||||
window);
|
window);
|
||||||
|
|
||||||
/* Try to guess if a client meant to be fullscreen and use
|
/* Try to guess if a client meant to be fullscreen (or not) and
|
||||||
* the real fullscreen state
|
* toggle the real fullscreen state in response. This is
|
||||||
|
* probably a bit dubious.
|
||||||
*/
|
*/
|
||||||
if (is_configure_request &&
|
if (is_configure_request &&
|
||||||
!window->decorated &&
|
!window->decorated &&
|
||||||
@ -1893,6 +1895,19 @@ meta_window_move_resize_internal (MetaWindow *window,
|
|||||||
window->desc);
|
window->desc);
|
||||||
meta_window_make_fullscreen (window);
|
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. */
|
/* We don't need it in the idle queue anymore. */
|
||||||
meta_window_unqueue_move_resize (window);
|
meta_window_unqueue_move_resize (window);
|
||||||
|
Loading…
Reference in New Issue
Block a user