aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xdg_shell_v6.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/xdg_shell_v6.c')
-rw-r--r--sway/desktop/xdg_shell_v6.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index 4b50093f..ca56a9c0 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -124,8 +124,6 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {
124 sway_surface->view = sway_view; 124 sway_surface->view = sway_view;
125 125
126 // TODO: 126 // TODO:
127 // - Wire up listeners
128 // - Handle popups
129 // - Look up pid and open on appropriate workspace 127 // - Look up pid and open on appropriate workspace
130 // - Set new view to maximized so it behaves nicely 128 // - Set new view to maximized so it behaves nicely
131 // - Criteria 129 // - Criteria
@@ -136,11 +134,8 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {
136 sway_surface->destroy.notify = handle_destroy; 134 sway_surface->destroy.notify = handle_destroy;
137 wl_signal_add(&xdg_surface->events.destroy, &sway_surface->destroy); 135 wl_signal_add(&xdg_surface->events.destroy, &sway_surface->destroy);
138 136
139 // TODO: actual focus semantics 137 struct sway_seat *seat = input_manager_current_seat(input_manager);
140 swayc_t *parent = root_container.children->items[0]; 138 swayc_t *cont = new_view(seat->focus, sway_view);
141 parent = parent->children->items[0]; // workspace
142
143 swayc_t *cont = new_view(parent, sway_view);
144 sway_view->swayc = cont; 139 sway_view->swayc = cont;
145 140
146 arrange_windows(cont->parent, -1, -1); 141 arrange_windows(cont->parent, -1, -1);