mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
Revert "window: Stop a gcc warning"
This reverts commit 335d211204
trying
not to trigger the uninitialized variable warning in gcc.
This commit is contained in:
parent
58a57185b7
commit
f16f47bd38
@ -10754,17 +10754,20 @@ void
|
|||||||
meta_window_compute_tile_match (MetaWindow *window)
|
meta_window_compute_tile_match (MetaWindow *window)
|
||||||
{
|
{
|
||||||
MetaWindow *match;
|
MetaWindow *match;
|
||||||
MetaTileMode match_tile_mode;
|
|
||||||
MetaStack *stack;
|
MetaStack *stack;
|
||||||
|
MetaTileMode match_tile_mode = META_TILE_NONE;
|
||||||
|
|
||||||
window->tile_match = NULL;
|
window->tile_match = NULL;
|
||||||
|
|
||||||
if (window->shaded ||
|
if (window->shaded || window->minimized)
|
||||||
window->minimized ||
|
|
||||||
!META_WINDOW_TILED_SIDE_BY_SIDE (window))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
match_tile_mode = window->tile_mode;
|
if (META_WINDOW_TILED_LEFT (window))
|
||||||
|
match_tile_mode = META_TILE_RIGHT;
|
||||||
|
else if (META_WINDOW_TILED_RIGHT (window))
|
||||||
|
match_tile_mode = META_TILE_LEFT;
|
||||||
|
else
|
||||||
|
return;
|
||||||
|
|
||||||
stack = window->screen->stack;
|
stack = window->screen->stack;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user