aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xdg_shell.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-06-26 20:32:09 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-07-01 09:58:18 -0400
commitacd79e1505c06089e4fb9fb6c0c6e1d351ba9176 (patch)
tree9f677ebac9604075e3138788fb72d6db423e1f17 /sway/desktop/xdg_shell.c
parentMerge pull request #2180 from martinetd/xdg_fullscreen (diff)
downloadsway-acd79e1505c06089e4fb9fb6c0c6e1d351ba9176.tar.gz
sway-acd79e1505c06089e4fb9fb6c0c6e1d351ba9176.tar.zst
sway-acd79e1505c06089e4fb9fb6c0c6e1d351ba9176.zip
Implement pid->workspace tracking
When you spawn a process with the exec command, sway now notes the workspace you had focused and the pid of the child process, then assigns that workspace to the child when its window appears. Some of this is carried over from sway 0.15, but with some major refactoring and centralization of state.
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r--sway/desktop/xdg_shell.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c
index 82db4076..47604c31 100644
--- a/sway/desktop/xdg_shell.c
+++ b/sway/desktop/xdg_shell.c
@@ -321,9 +321,6 @@ void handle_xdg_shell_surface(struct wl_listener *listener, void *data) {
321 view_init(&xdg_shell_view->view, SWAY_VIEW_XDG_SHELL, &view_impl); 321 view_init(&xdg_shell_view->view, SWAY_VIEW_XDG_SHELL, &view_impl);
322 xdg_shell_view->view.wlr_xdg_surface = xdg_surface; 322 xdg_shell_view->view.wlr_xdg_surface = xdg_surface;
323 323
324 // TODO:
325 // - Look up pid and open on appropriate workspace
326
327 xdg_shell_view->map.notify = handle_map; 324 xdg_shell_view->map.notify = handle_map;
328 wl_signal_add(&xdg_surface->events.map, &xdg_shell_view->map); 325 wl_signal_add(&xdg_surface->events.map, &xdg_shell_view->map);
329 326