]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Do not decorate windows such as dmenu
authorJohan Malm <jgm323@gmail.com>
Sat, 28 Dec 2019 20:33:01 +0000 (20:33 +0000)
committerJohan Malm <jgm323@gmail.com>
Sat, 28 Dec 2019 20:33:01 +0000 (20:33 +0000)
output.c

index 129b7734d494a30cf0ea4363d6b78dc125832525..773763c6f230b3cce5df7611b6af73a576fed920 100644 (file)
--- a/output.c
+++ b/output.c
@@ -19,6 +19,11 @@ static void render_decorations(struct wlr_output *output, struct view *view)
                return;
        if (!is_toplevel(view))
                return;
+       if (view->xwayland_surface->override_redirect)
+               return;
+       if (view->xwayland_surface->decorations !=
+           WLR_XWAYLAND_SURFACE_DECORATIONS_ALL)
+               return;
 
        struct wlr_box box = {
                .x = view->x - XWL_WINDOW_BORDER,