mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
implement fullscreen for x11
This commit is contained in:
@@ -34,7 +34,7 @@ PlatformWindow& g_window = window;
|
||||
|
||||
void PlatformWindow::updateUnmaximizedCoords()
|
||||
{
|
||||
if(!isMaximized()) {
|
||||
if(!isMaximized() && !isFullscreen()) {
|
||||
m_unmaximizedPos = m_pos;
|
||||
m_unmaximizedSize = m_size;
|
||||
}
|
||||
|
@@ -495,8 +495,6 @@ void X11Window::hide()
|
||||
|
||||
void X11Window::maximize()
|
||||
{
|
||||
updateUnmaximizedCoords();
|
||||
|
||||
Atom wmState = XInternAtom(m_display, "_NET_WM_STATE", False);
|
||||
Atom wmStateMaximizedVert = XInternAtom(m_display, "_NET_WM_STATE_MAXIMIZED_VERT", False);
|
||||
Atom wmStateMaximizedHorz = XInternAtom(m_display, "_NET_WM_STATE_MAXIMIZED_HORZ", False);
|
||||
|
Reference in New Issue
Block a user