summaryrefslogtreecommitdiff
path: root/sway/desktop/wl_shell.c
diff options
context:
space:
mode:
authorTony Crisci <[email protected]>2018-01-14 11:47:48 -0500
committerTony Crisci <[email protected]>2018-01-14 11:47:48 -0500
commit2ce1d8d6cd0ae1520ea191678e3c39d555c66b58 (patch)
tree27dd9d31d013fd283e2a5a25db2259802e0a5b8f /sway/desktop/wl_shell.c
parent619254db76e5a0c87750f075afccb608b32f9c48 (diff)
render wl-shell and xwayland views
Diffstat (limited to 'sway/desktop/wl_shell.c')
-rw-r--r--sway/desktop/wl_shell.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/desktop/wl_shell.c b/sway/desktop/wl_shell.c
index 345a1398..e34f5160 100644
--- a/sway/desktop/wl_shell.c
+++ b/sway/desktop/wl_shell.c
@@ -77,11 +77,13 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) {
listener, server, wl_shell_surface);
struct wlr_wl_shell_surface *shell_surface = data;
- if (shell_surface->state != WLR_WL_SHELL_SURFACE_STATE_TOPLEVEL) {
- // TODO: transient and popups should be floating
+ if (shell_surface->state == WLR_WL_SHELL_SURFACE_STATE_POPUP) {
+ // popups don't get views
return;
}
+ // TODO make transient windows floating
+
wlr_log(L_DEBUG, "New wl_shell toplevel title='%s' app_id='%s'",
shell_surface->title, shell_surface->class);
wlr_wl_shell_surface_ping(shell_surface);