wayland: Add support for the set_margin request

This commit is contained in:
Jasper St. Pierre
2014-02-07 17:29:35 -05:00
parent 0c213c8fee
commit def5e86673
5 changed files with 74 additions and 11 deletions

View File

@ -10882,3 +10882,20 @@ meta_window_get_toplevel_xwindow (MetaWindow *window)
{
return window->frame ? window->frame->xwindow : window->xwindow;
}
void
meta_window_set_custom_frame_extents (MetaWindow *window,
GtkBorder *extents)
{
if (extents)
{
window->has_custom_frame_extents = TRUE;
window->custom_frame_extents = *extents;
}
else
{
window->has_custom_frame_extents = FALSE;
}
meta_window_queue (window, META_QUEUE_MOVE_RESIZE);
}