mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
rail: fix window freeze when moving window after minimizing and restoring
When restoring from minimized state, sometimes MapNotify is received before PropertyNotify, and the rail_state is still WINDOW_SHOW_MINIMIZED.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
* X11 Event Handling
|
||||
*
|
||||
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||
* Copyright 2023 HP Development Company, L.P.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -855,7 +856,7 @@ static BOOL xf_event_MapNotify(xfContext* xfc, const XMapEvent* event, BOOL app)
|
||||
{
|
||||
xfAppWindow* appWindow = xf_AppWindowFromX11Window(xfc, event->window);
|
||||
|
||||
if (appWindow && (appWindow->rail_state == WINDOW_SHOW))
|
||||
if (appWindow)
|
||||
{
|
||||
/* local restore event */
|
||||
/* This is now handled as part of the PropertyNotify
|
||||
|
||||
Reference in New Issue
Block a user