aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.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/xwayland.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/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 4bb35f60..b3b1473d 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -446,9 +446,6 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
446 view_init(&xwayland_view->view, SWAY_VIEW_XWAYLAND, &view_impl); 446 view_init(&xwayland_view->view, SWAY_VIEW_XWAYLAND, &view_impl);
447 xwayland_view->view.wlr_xwayland_surface = xsurface; 447 xwayland_view->view.wlr_xwayland_surface = xsurface;
448 448
449 // TODO:
450 // - Look up pid and open on appropriate workspace
451
452 wl_signal_add(&xsurface->events.destroy, &xwayland_view->destroy); 449 wl_signal_add(&xsurface->events.destroy, &xwayland_view->destroy);
453 xwayland_view->destroy.notify = handle_destroy; 450 xwayland_view->destroy.notify = handle_destroy;
454 451