mirror of https://github.com/godotengine/godot
Merge pull request #101566 from TCROC/fix-wayland-cant-set-mode-exclusive-full-screen
Fix Wayland `window_can_set_mode` ExclusiveFullScreen
This commit is contained in:
commit
6820cceb86
|
|
@ -3492,7 +3492,8 @@ bool WaylandThread::window_can_set_mode(DisplayServer::WindowID p_window_id, Dis
|
||||||
return ws.can_maximize;
|
return ws.can_maximize;
|
||||||
};
|
};
|
||||||
|
|
||||||
case DisplayServer::WINDOW_MODE_FULLSCREEN: {
|
case DisplayServer::WINDOW_MODE_FULLSCREEN:
|
||||||
|
case DisplayServer::WINDOW_MODE_EXCLUSIVE_FULLSCREEN: {
|
||||||
#ifdef LIBDECOR_ENABLED
|
#ifdef LIBDECOR_ENABLED
|
||||||
if (ws.libdecor_frame) {
|
if (ws.libdecor_frame) {
|
||||||
return libdecor_frame_has_capability(ws.libdecor_frame, LIBDECOR_ACTION_FULLSCREEN);
|
return libdecor_frame_has_capability(ws.libdecor_frame, LIBDECOR_ACTION_FULLSCREEN);
|
||||||
|
|
@ -3501,13 +3502,6 @@ bool WaylandThread::window_can_set_mode(DisplayServer::WindowID p_window_id, Dis
|
||||||
|
|
||||||
return ws.can_fullscreen;
|
return ws.can_fullscreen;
|
||||||
};
|
};
|
||||||
|
|
||||||
case DisplayServer::WINDOW_MODE_EXCLUSIVE_FULLSCREEN: {
|
|
||||||
// I'm not really sure but from what I can find Wayland doesn't really have
|
|
||||||
// the concept of exclusive fullscreen.
|
|
||||||
// TODO: Discuss whether to fallback to regular fullscreen or not.
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue