diff options
Diffstat (limited to 'sway/desktop/xdg_shell_v6.c')
-rw-r--r-- | sway/desktop/xdg_shell_v6.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c index b3dbcfbe..e2a61ebf 100644 --- a/sway/desktop/xdg_shell_v6.c +++ b/sway/desktop/xdg_shell_v6.c | |||
@@ -2,6 +2,7 @@ | |||
2 | #include <stdlib.h> | 2 | #include <stdlib.h> |
3 | #include <wayland-server.h> | 3 | #include <wayland-server.h> |
4 | #include <wlr/types/wlr_xdg_shell_v6.h> | 4 | #include <wlr/types/wlr_xdg_shell_v6.h> |
5 | #include "sway/container.h" | ||
5 | #include "sway/server.h" | 6 | #include "sway/server.h" |
6 | #include "sway/view.h" | 7 | #include "sway/view.h" |
7 | #include "log.h" | 8 | #include "log.h" |
@@ -47,6 +48,9 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) { | |||
47 | } | 48 | } |
48 | sway_view->type = SWAY_XDG_SHELL_V6_VIEW; | 49 | sway_view->type = SWAY_XDG_SHELL_V6_VIEW; |
49 | sway_view->iface.get_prop = get_prop; | 50 | sway_view->iface.get_prop = get_prop; |
51 | sway_view->wlr_xdg_surface_v6 = xdg_surface; | ||
52 | sway_view->sway_xdg_surface_v6 = sway_surface; | ||
53 | sway_view->surface = xdg_surface->surface; | ||
50 | sway_surface->view = sway_view; | 54 | sway_surface->view = sway_view; |
51 | 55 | ||
52 | // TODO: | 56 | // TODO: |
@@ -56,4 +60,11 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) { | |||
56 | // - Look up pid and open on appropriate workspace | 60 | // - Look up pid and open on appropriate workspace |
57 | // - Set new view to maximized so it behaves nicely | 61 | // - Set new view to maximized so it behaves nicely |
58 | // - Criteria | 62 | // - Criteria |
63 | |||
64 | // TODO: actual focus semantics | ||
65 | swayc_t *parent = root_container.children->items[0]; | ||
66 | parent = parent->children->items[0]; // workspace | ||
67 | |||
68 | swayc_t *cont = new_view(parent, sway_view); | ||
69 | sway_view->swayc = cont; | ||
59 | } | 70 | } |