xfreerdp: fix movement of RAIL windows

This commit is contained in:
Marc-André Moreau 2011-08-17 23:46:08 -04:00
parent 49b1fa25a0
commit 2aa3d6f731
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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;