summaryrefslogtreecommitdiff
path: root/sway/desktop/render.c
diff options
context:
space:
mode:
authorErik Reider <[email protected]>2023-04-21 09:00:38 +0200
committerGitHub <[email protected]>2023-04-21 03:00:38 -0400
commit50e2422e743c0b337097dd2367f82e0d4b20fabc (patch)
treef385d3881aa489653756fc9e7b754740f303b399 /sway/desktop/render.c
parent10c74b61240331d51376dbd20687954a66bfcad2 (diff)
Only offset view by border size if not fullscreen (#145)
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r--sway/desktop/render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 9415d469..e404a26e 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -656,7 +656,8 @@ static void render_view_toplevels(struct sway_view *view, struct sway_output *ou
clip_box.y = state.y - output->ly;
clip_box.width = state.width;
clip_box.height = state.height;
- if (state.border == B_PIXEL || state.border == B_NORMAL) {
+ if (state.fullscreen_mode == FULLSCREEN_NONE
+ && (state.border == B_PIXEL || state.border == B_NORMAL)) {
clip_box.x += state.border_thickness;
clip_box.y += state.border_thickness;
clip_box.width -= state.border_thickness * 2;