Commit d75da4ec authored by Peter Hutterer's avatar Peter Hutterer

dix: IsFloating() on master devices is always false

There are a few subtle bugs during startup where IsFloating() returns true
if the device is a master device that is not yet paired with its keyboard

Force IsFloating() to always return FALSE for master devices, that was the
intent after all and any code that relies on the other behaviour should be
fixed instead.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
Reviewed-by: Jeremy Huddleston Sequoia's avatarJeremy Huddleston <>
Tested-by: Jon Turney's avatarJon TURNEY <>
(cherry picked from commit 5497ce3d)
parent 38e73f7f
......@@ -341,7 +341,7 @@ IsMaster(DeviceIntPtr dev)
IsFloating(DeviceIntPtr dev)
return GetMaster(dev, MASTER_KEYBOARD) == NULL;
return !IsMaster(dev) && GetMaster(dev, MASTER_KEYBOARD) == NULL;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment