summaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2014-04-30 16:28:41 -0700
committerKristian Høgsberg <krh@bitplanet.net>2014-04-30 16:28:41 -0700
commite5c1ae9368821379e0028cd8dc0fa7e039f84c21 (patch)
treea0f16d162ee01debbdc4509bdafea46980c3429e /xwayland
parent052ef4e7bcd8929b5bceafa2beb76be43fc32822 (diff)
downloadweston-e5c1ae9368821379e0028cd8dc0fa7e039f84c21.tar.gz
xwayland: Set decoration margin for xwayland windows
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/window-manager.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
index 627c45e1..dd0118ef 100644
--- a/xwayland/window-manager.c
+++ b/xwayland/window-manager.c
@@ -944,7 +944,8 @@ weston_wm_window_draw_decoration(void *data)
cairo_t *cr;
int x, y, width, height;
int32_t input_x, input_y, input_w, input_h;
-
+ struct weston_shell_interface *shell_interface =
+ &wm->server->compositor->shell_interface;
uint32_t flags = 0;
weston_wm_window_read_properties(window);
@@ -1006,6 +1007,12 @@ weston_wm_window_draw_decoration(void *data)
pixman_region32_init_rect(&window->surface->pending.input,
input_x, input_y, input_w, input_h);
+
+ shell_interface->set_margin(window->shsurf,
+ input_x,
+ width - input_w - input_x,
+ input_y,
+ height - input_h - input_y);
}
}