VideoSetFullscreen needs X11 connection.
This commit is contained in:
parent
e977007dd3
commit
51eb720265
4
video.c
4
video.c
|
@ -9144,6 +9144,10 @@ void VideoSetFullscreen(int onoff)
|
||||||
{
|
{
|
||||||
xcb_client_message_event_t event;
|
xcb_client_message_event_t event;
|
||||||
|
|
||||||
|
if (!XlibDisplay) { // needs running connection
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
memset(&event, 0, sizeof(event));
|
memset(&event, 0, sizeof(event));
|
||||||
event.response_type = XCB_CLIENT_MESSAGE;
|
event.response_type = XCB_CLIENT_MESSAGE;
|
||||||
event.format = 32;
|
event.format = 32;
|
||||||
|
|
Loading…
Reference in New Issue