aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/wl_shell.c
diff options
context:
space:
mode:
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) {
77 listener, server, wl_shell_surface); 77 listener, server, wl_shell_surface);
78 struct wlr_wl_shell_surface *shell_surface = data; 78 struct wlr_wl_shell_surface *shell_surface = data;
79 79
80 if (shell_surface->state != WLR_WL_SHELL_SURFACE_STATE_TOPLEVEL) { 80 if (shell_surface->state == WLR_WL_SHELL_SURFACE_STATE_POPUP) {
81 // TODO: transient and popups should be floating 81 // popups don't get views
82 return; 82 return;
83 } 83 }
84 84
85 // TODO make transient windows floating
86
85 wlr_log(L_DEBUG, "New wl_shell toplevel title='%s' app_id='%s'", 87 wlr_log(L_DEBUG, "New wl_shell toplevel title='%s' app_id='%s'",
86 shell_surface->title, shell_surface->class); 88 shell_surface->title, shell_surface->class);
87 wlr_wl_shell_surface_ping(shell_surface); 89 wlr_wl_shell_surface_ping(shell_surface);