window: Add tile mode getter

Lets avoid peeking in the MetaWindow struct itself and add a getter for
the relevant state.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/621
This commit is contained in:
Jonas Ådahl 2019-06-13 15:49:26 +02:00 committed by Georges Basile Stavracas Neto
parent 425611eadf
commit db0f85ba5d
2 changed files with 7 additions and 0 deletions

View File

@ -626,6 +626,7 @@ void meta_window_queue (MetaWindow *window,
guint queuebits); guint queuebits);
void meta_window_tile (MetaWindow *window, void meta_window_tile (MetaWindow *window,
MetaTileMode mode); MetaTileMode mode);
MetaTileMode meta_window_get_tile_mode (MetaWindow *window);
void meta_window_restore_tile (MetaWindow *window, void meta_window_restore_tile (MetaWindow *window,
MetaTileMode mode, MetaTileMode mode,
int width, int width,

View File

@ -3210,6 +3210,12 @@ meta_window_tile (MetaWindow *window,
meta_frame_queue_draw (window->frame); meta_frame_queue_draw (window->frame);
} }
MetaTileMode
meta_window_get_tile_mode (MetaWindow *window)
{
return window->tile_mode;
}
void void
meta_window_restore_tile (MetaWindow *window, meta_window_restore_tile (MetaWindow *window,
MetaTileMode mode, MetaTileMode mode,