Commit db0f85ba authored by Jonas Ådahl's avatar Jonas Ådahl Committed by Georges Basile Stavracas Neto

window: Add tile mode getter

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

parent 425611ea
......@@ -626,6 +626,7 @@ void meta_window_queue (MetaWindow *window,
guint queuebits);
void meta_window_tile (MetaWindow *window,
MetaTileMode mode);
MetaTileMode meta_window_get_tile_mode (MetaWindow *window);
void meta_window_restore_tile (MetaWindow *window,
MetaTileMode mode,
int width,
......@@ -3210,6 +3210,12 @@ meta_window_tile (MetaWindow *window,
meta_frame_queue_draw (window->frame);
meta_window_get_tile_mode (MetaWindow *window)
return window->tile_mode;
meta_window_restore_tile (MetaWindow *window,
MetaTileMode mode,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment