mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Merge pull request #10882 from amazingfate/fix-floatbar-mouse
[client,X11] ignore mouse events not originating in session window
This commit is contained in:
@@ -756,6 +756,16 @@ int xf_input_event(xfContext* xfc, const XEvent* xevent, XIDeviceEvent* event, i
|
||||
WINPR_ASSERT(xevent);
|
||||
WINPR_ASSERT(event);
|
||||
|
||||
/* When not running RAILS we only care about events for this window.
|
||||
* filter out anything else, like floatbar window events
|
||||
*/
|
||||
const Window w = xevent->xany.window;
|
||||
if (w != xfc->window)
|
||||
{
|
||||
if (!xfc->remote_app)
|
||||
return 0;
|
||||
}
|
||||
|
||||
settings = xfc->common.context.settings;
|
||||
WINPR_ASSERT(settings);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user