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:
Rui Matos 2012-03-18 19:53:31 +01:00
parent 58a57185b7
commit f16f47bd38

View File

@ -10754,17 +10754,20 @@ void
meta_window_compute_tile_match (MetaWindow *window)
{
MetaWindow *match;
MetaTileMode match_tile_mode;
MetaStack *stack;
MetaTileMode match_tile_mode = META_TILE_NONE;
window->tile_match = NULL;
if (window->shaded ||
window->minimized ||
!META_WINDOW_TILED_SIDE_BY_SIDE (window))
if (window->shaded || window->minimized)
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;