mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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:
parent
425611eadf
commit
db0f85ba5d
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user