diff options
author | emersion <contact@emersion.fr> | 2018-03-30 23:58:40 -0400 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-03-30 23:58:40 -0400 |
commit | 5f3fce75198791ea5fd63178e5b42cfe83bccc58 (patch) | |
tree | 8dac804e6cad5325921f137d0d63a81235c26c4e | |
parent | Use wlr_surface_point_accepts_input (diff) | |
download | sway-5f3fce75198791ea5fd63178e5b42cfe83bccc58.tar.gz sway-5f3fce75198791ea5fd63178e5b42cfe83bccc58.tar.zst sway-5f3fce75198791ea5fd63178e5b42cfe83bccc58.zip |
Maximize xwayland views by default
-rw-r--r-- | sway/desktop/xwayland.c | 5 |
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) { | |||
143 | struct sway_view *view = sway_surface->view; | 143 | struct sway_view *view = sway_surface->view; |
144 | container_view_destroy(view->swayc); | 144 | container_view_destroy(view->swayc); |
145 | 145 | ||
146 | wlr_xwayland_surface_set_maximized(xsurface, true); | ||
147 | |||
146 | struct sway_seat *seat = input_manager_current_seat(input_manager); | 148 | struct sway_seat *seat = input_manager_current_seat(input_manager); |
147 | struct sway_container *focus = sway_seat_get_focus_inactive(seat, &root_container); | 149 | struct sway_container *focus = sway_seat_get_focus_inactive(seat, |
150 | &root_container); | ||
148 | struct sway_container *cont = container_view_create(focus, view); | 151 | struct sway_container *cont = container_view_create(focus, view); |
149 | view->swayc = cont; | 152 | view->swayc = cont; |
150 | arrange_windows(cont->parent, -1, -1); | 153 | arrange_windows(cont->parent, -1, -1); |