Disable compositor bypass
This commit is contained in:
@@ -51,6 +51,15 @@ int main(int argc, char* argv[])
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if linux && SDL_VERSION_ATLEAST(2, 0, 8)
|
||||||
|
// Disable compositor bypass
|
||||||
|
if(!SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0"))
|
||||||
|
{
|
||||||
|
printf("SDL can not disable compositor bypass!\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Create window
|
// Create window
|
||||||
SDL_Window *window = SDL_CreateWindow("Basic C SDL project",
|
SDL_Window *window = SDL_CreateWindow("Basic C SDL project",
|
||||||
SDL_WINDOWPOS_UNDEFINED,
|
SDL_WINDOWPOS_UNDEFINED,
|
||||||
|
|||||||
Reference in New Issue
Block a user