path: root/src/draglock.c
AgeCommit message (Collapse)AuthorFilesLines
2022-01-16Convert src/draglock.c from ISO-8859-1 to UTF-8HEADmasterAlan Coopersmith1-1/+1
Fixes flawfinder error in CI: Error: encoding error in ./src/draglock.c 'utf-8' codec can't decode byte 0xa9 in position 343: invalid start byte Signed-off-by: Alan Coopersmith <>
2011-01-31Replace xf86Msg() with xf86IDrvMsg().Peter Hutterer1-14/+14
The latter provides a standardised message format in the form of driver name: device name: message making it easier to grep for driver messages in the log. Signed-off-by: Peter Hutterer <>
2011-01-24Remove support for X input ABI < 12.2Chase Douglas1-5/+0
Signed-off-by: Chase Douglas <> Signed-off-by: Peter Hutterer <>
2010-05-28Remove libc wrappers for malloc, calloc and free.Peter Hutterer1-1/+1
Evdev is Linux-only, and we've had the above calls for quite a while now. Plus, now that the server has removed them they generate _a lot_ of warnings otherwise. Signed-off-by: Peter Hutterer <> Reviewed-by: Jamey Sharp <>
2010-04-29config: remove AH_TOP autoheader statement.Peter Hutterer1-1/+1
Include it in evdev.h instead. xorg-server.h is required to define the right datatype sizes on 64 bit, hence ensure that evdev.h is the first included in each file. Signed-off-by: Peter Hutterer <> Reviewed-by: Gaetan Nadon <>
2010-04-20evdev: leaked_storage: free memory allocated from the xf86Option code.Oliver McFadden1-0/+2
Signed-off-by: Oliver McFadden <> Reviewed-by: Peter Hutterer <>
2009-11-02Fix drag-lock property handler for multiple draglock buttons.Peter Hutterer1-4/+5
Parsing of the values was wrong. Given an input of 1 2 3 4, button 1 sets the lock for button 2 and button 3 sets the lock for button 4. This also means we need to return BadMatch if the property isn't a multiple of 2. Red Hat Bug 524428 <> Signed-off-by: Peter Hutterer <>
2009-08-13Rename parts of the Post API to a Queue API.Peter Hutterer1-1/+1
Button and key events aren't posted from EvdevPost*Event, they are simply enqueued onto the evdev-internal event queue until the next EV_SYN arrives. Rename those interfaces from EvdevPost* to EvdevQueue* and leave only those that actually post to the server with a matching "*Post*" name. Signed-off-by: Peter Hutterer <> Acked-by: Oliver McFadden <>
2009-08-13comment typo fixPeter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <>
2009-08-04evdev: Use the EvdevPost...Event() functions in the emulation code.Oliver McFadden1-2/+2
This is similar to commit 1f641d75edba7394201c1c53938215bae696791b. It provides the same functionality of queuing the (in this case emulated) events and waiting until an EV_SYN synchronization event is received before posting them to the server. This preserves the order of events (both real and emulated) and ensures that MotionNotify events will always be posted first. It also unifies the event posting into a few small functions which improves maintainability. From this point on, you should never use the xf86Post...Event() functions in new code, but rather the EvdevPost...Event() versions. Signed-off-by: Peter Hutterer <>
2009-02-02Janitor: make distcheck, .gitignore.Paulo Cesar Pereira de Andrade1-1/+1
Remove non toplevel .gitignore and .cvsignore files. The "make distcheck correction" for $(sdkdir) probably has a better approach using a "*-hook:" target, or possibly making $sdkdir a configure time option that could be set with DISTCHECK_CONFIGURE_FLAGS.
2009-02-02Protect against zero-sized property values. #19882Peter Hutterer1-1/+3
X.Org Bug 19882 <> Signed-off-by: Peter Hutterer <>
2008-10-14Tidy up evdev.hPeter Hutterer1-39/+40
This includes shuffling some functions around so we don't need the prototypes in evdev.h.
2008-10-14Rename DragLockInit to DragLockPreInit, remove superfluous "return".Peter Hutterer1-3/+1
2008-10-14Register property handler from within the modules, not the main evdev file.Peter Hutterer1-0/+2
2008-10-11Add checkonly handling to property handlers.Peter Hutterer1-7/+14
If checkonly is TRUE, we can only check if applying the value would succeed. The value is actually applied if checkonly is FALSE.
2008-10-11Fix up bad return code in draglock property handler.Peter Hutterer1-1/+1
2008-09-30Move misplaced #endifPeter Hutterer1-1/+1
2008-09-30Add evdev-properties.h file with #defines for all property names.Peter Hutterer1-3/+2
2008-09-26Use new property API (no ConfigureDP, less args to ChangeDP)Peter Hutterer1-9/+11
Return appropriate status codes from property handlers. Make properties non-deletable.
2008-09-26draglock: Shut up compiler warning.Peter Hutterer1-0/+1
2008-09-04Use HAVE_PROPERTIES define instead of GET_ABI_MAJOR for property compilation.Peter Hutterer1-2/+2
2008-09-04Shut up "unused variable" compiler warnings.Peter Hutterer1-0/+2
Hide properties behind ifdefs, fake use of "val".
2008-08-18Add property support for drag lock.Peter Hutterer1-0/+103
2008-08-18Adding in DragLockButtons functionality.Chris Salch1-0/+203
Signed-off-by: Peter Hutterer <>