Skip to content

Commit 0c61112

Browse files
committed
src/core/window.c: Override window's depth and xvisual only if window size is not 1x1.
Fixes issue with using BLIT and VSYNC breakage in case OBS Studio or any other screen recording software works, real reason of issue is `window->depth = attrs->depth` was used in case window size is `1x1`, but just in case I also included `window->xvisual = attrs->visual` to be overriden only if window size is not `1x1`.
1 parent eb207ea commit 0c61112

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/window.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,10 +1120,10 @@ _meta_window_shared_new (MetaDisplay *display,
11201120
/* And this is our unmaximized size */
11211121
window->saved_rect = window->rect;
11221122
window->unconstrained_rect = window->rect;
1123-
}
11241123

1125-
window->depth = attrs->depth;
1126-
window->xvisual = attrs->visual;
1124+
window->depth = attrs->depth;
1125+
window->xvisual = attrs->visual;
1126+
}
11271127

11281128
window->title = NULL;
11291129
window->icon = NULL;

0 commit comments

Comments
 (0)