diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-31 11:27:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-31 11:27:05 -0400 |
commit | a1e7ffd857b27a430989718c7328e7b969a99ca3 (patch) | |
tree | e91aee4855072e4c399037b7001a5766143cd1b7 | |
parent | eb5a8e03ff10d956de70f121bc70fd4cad524a9f (diff) | |
parent | 5f3fce75198791ea5fd63178e5b42cfe83bccc58 (diff) |
Merge pull request #1677 from emersion/maximize-xwayland-views
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) { 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); |