Only offset view by border size if not fullscreen (#145)

This commit is contained in:
Erik Reider 2023-04-21 09:00:38 +02:00 committed by GitHub
parent 10c74b6124
commit 50e2422e74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.y = state.y - output->ly;
clip_box.width = state.width; clip_box.width = state.width;
clip_box.height = state.height; 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.x += state.border_thickness;
clip_box.y += state.border_thickness; clip_box.y += state.border_thickness;
clip_box.width -= state.border_thickness * 2; clip_box.width -= state.border_thickness * 2;