aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-30 23:58:40 -0400
committeremersion <contact@emersion.fr>2018-03-30 23:58:40 -0400
commit5f3fce75198791ea5fd63178e5b42cfe83bccc58 (patch)
tree8dac804e6cad5325921f137d0d63a81235c26c4e /sway/desktop/xwayland.c
parent212b5039927842f22295c95f4e0a4f914b243194 (diff)
Maximize xwayland views by default
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 01c993b3..83e97a4b 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -143,8 +143,11 @@ static void handle_map(struct wl_listener *listener, void *data) {
struct sway_view *view = sway_surface->view;
container_view_destroy(view->swayc);
+ wlr_xwayland_surface_set_maximized(xsurface, true);
+
struct sway_seat *seat = input_manager_current_seat(input_manager);
- struct sway_container *focus = sway_seat_get_focus_inactive(seat, &root_container);
+ struct sway_container *focus = sway_seat_get_focus_inactive(seat,
+ &root_container);
struct sway_container *cont = container_view_create(focus, view);
view->swayc = cont;
arrange_windows(cont->parent, -1, -1);