Commit Graph

62 Commits

Author SHA1 Message Date
Akihiro Sagawa ce7a98e95c winex11: Return more reliable value from X11DRV_MsgWaitForMultipleObjects.
After processing several X events, X11DRV_MsgWaitForMultipleObjects always
tells us that a new message is available. This is not true for some cases.

For instance, when we call DestroyWindow, the X queues DestroyEvent. Then,
X11DRV_MsgWaitForMultipleObjects handles the event only; none is posted or
sent as hwnd for destroyed window is unavailable. However, the function
states "new message is available" by returning count - 1 value.

This is an issue for CoWaitForMultipleHandles because it expects a new
message in the queue and consumes the message.

Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-25 22:27:40 +09:00
Michael Stefaniuc 17169816cd winex11: Use debugstr_a to print strings that can be NULL.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-14 19:05:53 +09:00
Eriks Dobelis 235100bb72 wintab: Initialize lcOutExtX and Y values. 2014-04-01 13:31:02 +02:00
Eriks Dobelis 2de64560fe wintab: Fix incorrectly classifying cursor as stylus instead of eraser. 2014-04-01 13:31:01 +02:00
C John Klehm d2ab8e454e winex11.drv: Add pen to tablet stylus detection whitelist. 2013-05-16 12:11:19 +02:00
Alexandre Julliard cf1be58706 winex11: Remove the remaining X11 locking calls. 2012-08-16 16:48:00 +02:00
Frédéric Delanoy 7e309601f3 dlls: Assorted spelling fixes. 2011-08-03 14:15:50 +02:00
Alexandre Julliard 9c8911e342 winex11: Simplify the event handler lookup, and support names in debug traces for extension events. 2011-04-06 13:26:42 +02:00
Peter Urbanec 0ea8bf17fa wintab32: Better handling of XInput initialisation errors. 2011-03-03 17:47:14 +01:00
Marcus Meissner 478592cd3d winex11.drv: Handle if cursor not found (Cpverity). 2009-12-04 14:34:57 +01:00
John Klehm bc95ef3cbc winex11.drv: Report correctly when wintab is disabled. 2009-11-30 12:47:46 +01:00
Maarten Lankhorst 569de388fa wintab32/winex11.drv: Add CDECL to imported functions. 2008-12-17 15:02:24 +01:00
Alexandre Julliard b4debd66a2 winex11: Make some functions static. 2008-12-03 12:10:32 +01:00
Juan Lang 6e726e2a91 winex11: Make button_state as large as the maximum number of cursors. Fixes Coverity id 728. 2008-09-12 11:41:16 +02:00
Andrew Talbot 9b5d26ed8b winex11.drv: Remove unneeded address-of operators from array names. 2008-07-14 11:50:37 +02:00
Francois Gouget dbaec0a101 Assorted spelling fixes. 2008-07-10 13:40:15 +02:00
Alexandre Julliard 06a1407c13 winex11: Explicitly request creation of the per-thread data where necessary. 2008-06-26 15:08:08 +02:00
John Klehm 70cf762d31 winex11: Place tablet cursors in slots based on type. 2008-06-20 12:27:23 +02:00
John Klehm 8d70da9fa9 winex11: Cursor iteration is now done by checking ACTIVE cursors. 2008-06-20 12:26:34 +02:00
John Klehm 97b2dcb62c winex11: Always assign a tablet cursor type. 2008-06-20 12:26:13 +02:00
John Klehm a629ece604 winex11: Add comments explaining wintab cursor slotting, type, and clarify x11 config. 2008-06-20 12:26:07 +02:00
John Klehm 189c13daa3 winex11: Support detection of tablet devices from XExtensionKeyboard type. 2008-05-27 12:11:08 +02:00
John Klehm f39f7525fd winex11: Detect acecad tablet as stylus device. 2008-05-27 12:11:04 +02:00
John Klehm cd550bf6b4 winex11.drv: Move hardware tablet proximity into x11 layer. 2008-05-08 11:13:23 +02:00
John Klehm 8d09d5c8ad winex11.drv: Wintab packet serial numbers are passed via WPARAM. 2008-05-07 12:12:11 +02:00
Alexandre Julliard 405575168f winex11: Check if IsXExtensionPointer is defined before using it. 2008-04-25 16:46:17 +02:00
John Klehm 2c26ea609d winex11: Add support for IsXExtensionPointer tablet devices. 2008-04-25 11:43:41 +02:00
John Klehm 33d4117e1b winex11: Allow wizardpen to be detected as a stylus. 2008-04-25 11:40:31 +02:00
John Klehm b95c091dbf winex11: Allow wintab devices with less than 5 axes. 2008-04-25 11:40:20 +02:00
Andrew Talbot 5d038523e9 winex11.drv: Assign to structs instead of using memcpy. 2008-03-24 11:33:22 +01:00
Andrew Talbot 8789ed6f84 winex11.drv: Indirection level fix. 2008-03-22 13:21:10 +01:00
Alexandre Julliard 075df1b609 winex11: Fix bug report address. 2008-03-18 11:44:09 +01:00
Dan Kegel 8e4d5d21fd wintab: Expand whitelist of tablets. 2008-03-13 20:44:18 +01:00
Dan Kegel 1eba6c7644 winex11: wintab.c: use atan2 instead of atan. 2008-03-07 10:52:25 +01:00
Francois Gouget f11713aa58 winex11.drv: Add some API documentation stubs to make winapi_check happy. 2008-02-05 12:19:37 +01:00
Andrew Talbot 68feed7e77 winex11.drv: Remove unneeded casts. 2008-02-04 14:20:45 +01:00
Alexandre Julliard c975876cb9 winex11.drv: Don't fetch the atom for a null device type. 2008-01-17 15:23:37 +01:00
Francois Gouget 44b52b128c Assorted spelling fixes. 2008-01-16 12:48:29 +01:00
Austin English 0e4adae973 Spelling fixes. 2008-01-07 13:41:01 +01:00
Jeremy White 659494660e wintab32: If we could not find a stylus sort of device, we haven't found a tablet. 2007-12-31 17:47:16 +01:00
Jeremy White 51aecf8056 wintab32: Add logic to detect specific tablet cursor types, use it to discard non tablet X devices. 2007-12-31 17:47:12 +01:00
Jeremy White ca89d7e809 wintab32: Add modest trace information for tablets. 2007-12-31 17:45:10 +01:00
Jeremy White f193197a66 wintab32: Capture the number of buttons earlier, allowing our button maps to be filled in. 2007-12-26 13:20:58 +01:00
Jeremy White 3036e7f626 wintab32: Implement the ability to return the number of devices and cursors. 2007-12-26 13:18:53 +01:00
Jeremy White f5adac3b19 wintab32: Don't return information for non existent cursors. 2007-12-26 13:18:47 +01:00
Jeremy White 9267fcd99f wintab32: Correctly handle devices with a device id of 0.
The XInput macros such as DeviceMotionNotify will correctly return an eventclass of 0
if the device id is 0.  Given that, we cannot use eventclass != 0 as a meaningful
test, and must instead use the returned type.
2007-12-26 13:18:32 +01:00
Jeremy White d58429d085 wintab32: Compute our physical device characteristics based on the first tablet device that looks like a stylus.
Otherwise, we may be computing based on a mouse or cursor, and then
come to incorrect values for our tilt and pressure settings.
2007-12-26 13:18:25 +01:00
Jeremy White 5132ab4693 wintab32: Add additional device tracing. 2007-12-26 13:18:15 +01:00
Jeremy White 64a929c483 wintab32: Order the cursor array by the standard Wacom promulgates. 2007-12-26 13:17:48 +01:00
Jeremy White 047a969658 wintab32: Add constants for cursor types and use them. 2007-12-26 13:17:00 +01:00