aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/wl_shell.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-01-14 11:47:48 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-01-14 11:47:48 -0500
commit2ce1d8d6cd0ae1520ea191678e3c39d555c66b58 (patch)
tree27dd9d31d013fd283e2a5a25db2259802e0a5b8f /sway/desktop/wl_shell.c
parentsubsurface input (diff)
downloadsway-2ce1d8d6cd0ae1520ea191678e3c39d555c66b58.tar.gz
sway-2ce1d8d6cd0ae1520ea191678e3c39d555c66b58.tar.zst
sway-2ce1d8d6cd0ae1520ea191678e3c39d555c66b58.zip
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) {
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);