aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-10-17 15:57:13 +0200
committerGitHub <noreply@github.com>2018-10-17 15:57:13 +0200
commit765c80e5f7c36df77e9475a662648a0d87b93606 (patch)
tree21f28277ff5109d9f8ec196a12fc74bbb5dfd994 /sway/desktop/xwayland.c
parent8d56269d9c9f2a5914aeb8f37f5877eb05000906 (diff)
parent1f0aeae33591fb46b3f8a91ca91975daf2a8bbf9 (diff)
Merge pull request #2820 from Emantor/fix-mouse-warping-container
Fix mouse warping container
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index ebf2131e..066556b8 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -405,18 +405,8 @@ static void handle_map(struct wl_listener *listener, void *data) {
xwayland_view->commit.notify = handle_commit;
// Put it back into the tree
- view_map(view, xsurface->surface);
+ view_map(view, xsurface->surface, xsurface->fullscreen, false);
- if (xsurface->fullscreen) {
- container_set_fullscreen(view->container, true);
- arrange_workspace(view->container->workspace);
- } else {
- if (view->container->parent) {
- arrange_container(view->container->parent);
- } else if (view->container->workspace) {
- arrange_workspace(view->container->workspace);
- }
- }
transaction_commit_dirty();
}