mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-01 13:48:02 +02:00
xfree86: don't call CheckMotion if a device hasn't been enabled. #19176
X.Org Bug <http://bugs.freedesktop.org/show_bug.cgi?id=19176>
(cherry picked from commit e1a3a1a0d8)
This commit is contained in:
parent
3225e1378e
commit
2ce48363b8
1 changed files with 4 additions and 3 deletions
|
|
@ -544,10 +544,11 @@ xf86NewInputDevice(IDevPtr idev, DeviceIntPtr *pdev, BOOL enable)
|
|||
ActivateDevice(dev);
|
||||
/* Enable it if it's properly initialised and we're currently in the VT */
|
||||
if (enable && dev->inited && dev->startup && xf86Screens[0]->vtSema)
|
||||
{
|
||||
EnableDevice(dev);
|
||||
|
||||
/* send enter/leave event, update sprite window */
|
||||
CheckMotion(NULL, dev);
|
||||
/* send enter/leave event, update sprite window */
|
||||
CheckMotion(NULL, dev);
|
||||
}
|
||||
|
||||
*pdev = dev;
|
||||
return Success;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue