]> git.mdlowis.com Git - proto/labwc.git/commitdiff
output: simplify render_cycle_box()
authorJohan Malm <jgm323@gmail.com>
Sat, 13 Mar 2021 11:20:47 +0000 (11:20 +0000)
committerJohan Malm <jgm323@gmail.com>
Sat, 13 Mar 2021 11:20:47 +0000 (11:20 +0000)
src/output.c

index 6c8f153d2a8289d3557924923497769353aed729..352981a5a92969f3a5281bd3d660fc7fcd3fa4eb 100644 (file)
@@ -379,15 +379,12 @@ render_cycle_box(struct output *output, pixman_region32_t *output_damage,
                .width = view->w,
                .height = view->h,
        };
-       if (rc.xdg_shell_server_side_deco) {
-               box.x -= view->margin.left;
-               box.y -= view->margin.top;
-               box.width += view->margin.left + view->margin.right;
-               box.height += view->margin.top + view->margin.bottom;
-       } else if (!view->maximized) {
-               box.x += view->padding.left;
-               box.y += view->padding.top;
-       }
+       box.x -= view->margin.left;
+       box.y -= view->margin.top;
+       box.width += view->margin.left + view->margin.right;
+       box.height += view->margin.top + view->margin.bottom;
+       box.x += view->padding.left;
+       box.y += view->padding.top;
 
        float white[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
        float black[4] = { 0.0f, 0.0f, 0.0f, 1.0f };