From: abma Date: Tue, 22 Aug 2017 20:42:58 +0000 (+0200) Subject: Revert "Possible fix for #4081 and #2707 (#4087)" X-Git-Tag: 2.0.0-rc1~91^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=165de9128778e976f085d5c4574396c26af73d83;p=platform%2Fupstream%2Ffreerdp.git Revert "Possible fix for #4081 and #2707 (#4087)" This reverts most of commit 6b7b60237042a891221d71a596fc683d850bcb4e. Part of #4096 --- diff --git a/client/X11/xf_window.c b/client/X11/xf_window.c index b4b9f98..321fdf6 100644 --- a/client/X11/xf_window.c +++ b/client/X11/xf_window.c @@ -6,7 +6,6 @@ * Copyright 2012 HP Development Company, LLC * Copyright 2016 Thincast Technologies GmbH * Copyright 2016 Armin Novak - * Copyright 2017 Kai Harms * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -146,9 +145,6 @@ void xf_SetWindowFullscreen(xfContext* xfc, xfWindow* window, BOOL fullscreen) UINT32 height = window->height; window->decorations = xfc->decorations; xf_SetWindowDecorations(xfc, window->handle, window->decorations); - unsigned long nitems, bytes; - BYTE* prop; - BOOL status; if (fullscreen) { @@ -207,24 +203,16 @@ void xf_SetWindowFullscreen(xfContext* xfc, xfWindow* window, BOOL fullscreen) XMoveWindow(xfc->display, window->handle, startX, startY); } - status = xf_GetWindowProperty(xfc, DefaultRootWindow(xfc->display), - xfc->_NET_WM_FULLSCREEN_MONITORS, 1, &nitems, &bytes, &prop); - - if (status) - { - /* Set the fullscreen state */ - xf_SendClientEvent(xfc, window->handle, xfc->_NET_WM_STATE, 4, - fullscreen ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE, - xfc->_NET_WM_STATE_FULLSCREEN, 0, 0); - } + /* Set the fullscreen state */ + xf_SendClientEvent(xfc, window->handle, xfc->_NET_WM_STATE, 4, + fullscreen ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE, + xfc->_NET_WM_STATE_FULLSCREEN, 0, 0); if (!fullscreen) { /* leave full screen: move the window after removing NET_WM_STATE_FULLSCREEN */ XMoveWindow(xfc->display, window->handle, startX, startY); } - - free(prop); } /* http://tronche.com/gui/x/xlib/window-information/XGetWindowProperty.html */