1
0
Fork 0

source/Platform/Unix/X11Display.cpp: implement fullscreen somewhat correctly :)

This commit is contained in:
Henrik Hautakoski 2023-08-02 06:01:33 +02:00
parent 186a6e0f14
commit 2cf035089b
2 changed files with 82 additions and 1 deletions

View file

@ -7,6 +7,7 @@
#include <X11/Xos.h>
#include <cstdint>
#include <Platform/PlatformDisplay.h>
#include "Xrandr.h"
namespace sp {
@ -62,6 +63,10 @@ protected :
void createHiddenCursor();
void toggleFullscreen(bool enabled);
void wm_fullscreen(bool enabled);
protected :
::Window m_win;
@ -72,6 +77,10 @@ protected :
::Cursor m_cur_last;
Vector2u m_size;
XRandR::VideoMode m_fullscreen_mode;
XRandR::VideoMode m_desktop_mode;
};
} // namespace sp