summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-10-13 21:01:02 +0200
committerFurkan Sahin <furkan-dev@proton.me>2018-10-13 21:01:02 +0200
commit77607aa5e3f7d3eef7a48294749385029eb3bc2c (patch)
tree1740c18381767afad7e13703d1cfa7b2e7f013dd /include
parentafcf8bcc3715e4e88c68c279f4059bcbf80cc643 (diff)
view: move arrange_workspace into view_map
For mouse_warping cursor to correctly work on newly spawned containers, the workspace needs to be arranged before the cursor is warped. The shell functions each implement their own fullscreen and arrange checks, move them into the view_map function and pass their states via boolean arguments. Fixes #2819
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/view.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 870ef2e0..dc1f0b02 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -329,7 +329,8 @@ void view_destroy(struct sway_view *view);
void view_begin_destroy(struct sway_view *view);
-void view_map(struct sway_view *view, struct wlr_surface *wlr_surface);
+void view_map(struct sway_view *view, struct wlr_surface *wlr_surface,
+ bool fullscreen, bool decoration);
void view_unmap(struct sway_view *view);