mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
window: Stop a gcc warning
"warning: 'match_tile_mode' may be used uninitialized in this function", it complains. It thinks it's not unused because of other values of window->tile_mode, but other complex logic ensures that it can't be META_TILE_MAXIMIZED, so this is a safe commit.
This commit is contained in:
parent
7f64d6b92e
commit
335d211204
@ -10764,10 +10764,7 @@ meta_window_compute_tile_match (MetaWindow *window)
|
||||
!META_WINDOW_TILED_SIDE_BY_SIDE (window))
|
||||
return;
|
||||
|
||||
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;
|
||||
match_tile_mode = window->tile_mode;
|
||||
|
||||
stack = window->screen->stack;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user