summaryrefslogtreecommitdiff
path: root/sway/desktop/wl_shell.c
diff options
context:
space:
mode:
authorTony Crisci <[email protected]>2018-01-15 10:19:49 -0500
committerGitHub <[email protected]>2018-01-15 10:19:49 -0500
commiteb0f432a840dbe860b8c20f7a16e0281f9026326 (patch)
treea8b8e1a5a92a4203503ead496d8d50fd72fcf850 /sway/desktop/wl_shell.c
parent5a23959242419169fa4af032d85ee3f65e7041e4 (diff)
parentddc49ede4636b01dad8d8bfb7d0314bf1eb88258 (diff)
Merge pull request #1566 from acrisci/render-loop
Subsurfaces and popups
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);