aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-30 22:46:25 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-30 22:46:25 +1000
commite396af853b01438f7e5ef34bfa6fd2507d11ce5a (patch)
tree323739dc80680dd774acfdcf43eb76cfe93aa64c /sway/desktop/xwayland.c
parentFix compile error (diff)
parentMerge pull request #2179 from atomnuker/master (diff)
downloadsway-e396af853b01438f7e5ef34bfa6fd2507d11ce5a.tar.gz
sway-e396af853b01438f7e5ef34bfa6fd2507d11ce5a.tar.zst
sway-e396af853b01438f7e5ef34bfa6fd2507d11ce5a.zip
Merge remote-tracking branch 'upstream/master' into atomic
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index ad893248..6e63c505 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -200,6 +200,14 @@ static void set_activated(struct sway_view *view, bool activated) {
200 wlr_xwayland_surface_activate(surface, activated); 200 wlr_xwayland_surface_activate(surface, activated);
201} 201}
202 202
203static void set_tiled(struct sway_view *view, bool tiled) {
204 if (xwayland_view_from_view(view) == NULL) {
205 return;
206 }
207 struct wlr_xwayland_surface *surface = view->wlr_xwayland_surface;
208 wlr_xwayland_surface_set_maximized(surface, tiled);
209}
210
203static void set_fullscreen(struct sway_view *view, bool fullscreen) { 211static void set_fullscreen(struct sway_view *view, bool fullscreen) {
204 if (xwayland_view_from_view(view) == NULL) { 212 if (xwayland_view_from_view(view) == NULL) {
205 return; 213 return;
@@ -258,6 +266,7 @@ static const struct sway_view_impl view_impl = {
258 .get_int_prop = get_int_prop, 266 .get_int_prop = get_int_prop,
259 .configure = configure, 267 .configure = configure,
260 .set_activated = set_activated, 268 .set_activated = set_activated,
269 .set_tiled = set_tiled,
261 .set_fullscreen = set_fullscreen, 270 .set_fullscreen = set_fullscreen,
262 .wants_floating = wants_floating, 271 .wants_floating = wants_floating,
263 .close = _close, 272 .close = _close,
@@ -307,7 +316,6 @@ static void handle_map(struct wl_listener *listener, void *data) {
307 xwayland_view->commit.notify = handle_commit; 316 xwayland_view->commit.notify = handle_commit;
308 317
309 // Put it back into the tree 318 // Put it back into the tree
310 wlr_xwayland_surface_set_maximized(xsurface, true);
311 view_map(view, xsurface->surface); 319 view_map(view, xsurface->surface);
312 320
313 if (xsurface->fullscreen) { 321 if (xsurface->fullscreen) {