mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-12-04 15:23:32 +08:00
xfreerdp: fix movement of RAIL windows
This commit is contained in:
parent
49b1fa25a0
commit
2aa3d6f731
@ -139,7 +139,7 @@ boolean xf_event_ButtonPress(xfInfo* xfi, XEvent* event, boolean app)
|
||||
if (app)
|
||||
{
|
||||
rdpWindow* window;
|
||||
window = window_list_get_by_extra_id(xfi->rail->list, (void*) event->xany.window);
|
||||
window = window_list_get_by_extra_id(xfi->rail->list, (void*) event->xbutton.window);
|
||||
|
||||
if (window != NULL)
|
||||
{
|
||||
|
@ -60,7 +60,7 @@ rdpWindow* window_list_get_by_extra_id(rdpWindowList* list, void* extraId)
|
||||
if (window == NULL)
|
||||
return NULL;
|
||||
|
||||
while (window->next != NULL)
|
||||
while (window != NULL)
|
||||
{
|
||||
if (window->extraId == extraId)
|
||||
return window;
|
||||
|
Loading…
Reference in New Issue
Block a user