diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-03-08 14:51:44 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-10-12 18:03:20 +0100 |
commit | 6bcadc57df39221439335e49fe83d09789bf7c9e (patch) | |
tree | 5371c992ee04931fb1a93d7e6ffd8b3a85496593 | |
parent | e6e566b2929c727f87f6a2759b3af2336942d79a (diff) |
Debug to report device freeze/thaw
-rw-r--r-- | dix/events.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dix/events.c b/dix/events.c index 07f7b1f6b..cbcd9da62 100644 --- a/dix/events.c +++ b/dix/events.c @@ -1257,6 +1257,20 @@ PlayReleasedEvents(void) static void FreezeThaw(DeviceIntPtr dev, Bool frozen) { + /* ErrorF("FreezeThaw: %s current %d new %d\n", dev->name, dev->deviceGrab.sync.frozen, frozen); */ + + if (dev->deviceGrab.sync.frozen != frozen) + { + if (frozen) + { + ErrorF("Freezing %s\n", dev->name); + } + else + { + ErrorF("Thawing %s\n", dev->name); + } + } + dev->deviceGrab.sync.frozen = frozen; if (frozen) dev->public.processInputProc = dev->public.enqueueInputProc; |