diff --git a/dix/access.c b/dix/access.c index e7d39b4c3..dc66db897 100644 --- a/dix/access.c +++ b/dix/access.c @@ -254,6 +254,7 @@ ACQueryWindowAccess(WindowPtr win, * If the device is explicitely permitted, allow. * If the window has a default of DenyAll, do not allow. * If the device is explicitely denied, do not allow. + * If the window has a default of AllowAll, allow. * Check parent window. Rinse, wash, repeat. * If no rule could be found, allow. */ @@ -309,6 +310,9 @@ ACDeviceAllowed(WindowPtr win, DeviceIntPtr dev, xEvent* xE) return False; } + if (win->optional->access.defaultRule == WindowAccessAllowAll) + return True; + return ACDeviceAllowed(win->parent, dev, xE); }