summaryrefslogtreecommitdiff
path: root/gdk/gdkdevice.c
Commit message (Collapse)AuthorAgeFilesLines
* device: Add a num-touches propertyMatthias Clasen2016-02-251-0/+25
| | | | | Some backends can provide this information for touch devices, and it can be useful to have, so add this property.
* gdk: Deprecate GdkDeviceManager and gdk_device_grab/ungrab()Carlos Garnacho2015-12-151-0/+4
| | | | | | GdkSeat is now the preferred way to deal with input devices and grabs. https://bugzilla.gnome.org/show_bug.cgi?id=759309
* GdkDevice: Add GdkSeat property and getterCarlos Garnacho2015-12-151-0/+55
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=759309
* device: Fix disposeCarlos Garnacho2015-11-241-7/+10
| | | | | | | | | | The way master devices detach from their other master counterpart is vulnerable to infinite recursion due to the way we first recurse on the other device before clearing the pointer, this may happen if that last reference to the other master device is held by the device->associated field. https://bugzilla.gnome.org/show_bug.cgi?id=732742
* GdkDevice: Do not free construct-only properties data on dispose()Carlos Garnacho2015-11-031-15/+21
| | | | | | | Those are not references to other objects, and the device will be mostly useless if those can't be set again anyway. https://bugzilla.gnome.org/show_bug.cgi?id=756625
* device: Convert to g_object_notify_by_pspecMatthias Clasen2015-09-061-94/+96
| | | | This avoids pspec lookup overhead in g_object_notify.
* device: Add property/getters for vendor/product identifiersCarlos Garnacho2015-01-191-1/+113
| | | | | | | These are a construct only properties, expected to be filled in from platform specific code. https://bugzilla.gnome.org/show_bug.cgi?id=740758
* docs: Add a missing wordMatthias Clasen2014-11-281-1/+1
|
* Add another multi-device invariantMatthias Clasen2014-10-281-0/+3
| | | | | | The device and window passed to gdk_device_grab() must be on the same display, or things are unlikely to work. Document and assert this.
* Don't return GDK_GRAB_SUCCESS on failureMatthias Clasen2014-10-281-2/+2
| | | | That seems ... counterproductive.
* GdkDevice: Avoid unnecessary criticalMatthias Clasen2014-10-051-1/+1
| | | | | | There is no need for a critical warning just because somebody asked for a property that is not meaningful for the device. Just document it as not useful for keyboard devices.
* Remove redundant checks for NULLMarek Kasik2014-10-021-4/+2
| | | | | | | | Remove checks for NULL before g_free() and g_clear_object(). Merge check for NULL, freeing of pointer and its setting to NULL by g_clear_pointer(). https://bugzilla.gnome.org/show_bug.cgi?id=733157
* gdk: Explain the relation between device type and modeCarlos Garnacho2014-07-211-0/+4
| | | | | GdkInputMode doesn't apply to all device types, explain why and how do these interact.
* GdkDevice: Use G_PARAM_EXPLICIT_NOTIFYMatthias Clasen2014-06-091-2/+2
|
* gdk: assorted introspection and documentation fixesEvan Nemerson2014-05-191-7/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=729983
* gdk: add many missing (nullable) return value annotationsEvan Nemerson2014-05-111-7/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=729834
* Add a Since annotation to gdk_device_get_last_event_windowMatthias Clasen2014-03-121-0/+2
|
* Use GDK's current window tracking when synthesizing events in GTK+Owen W. Taylor2014-03-121-0/+27
| | | | | | | | | Add gdk_device_get_last_event_window(), and use to implement the window tracking we need for synthesizing crossing events for sensitivity changes and gtk grabs, rather than keeping the information in qdata and updating it based when GTK+ gets events. https://bugzilla.gnome.org/show_bug.cgi?id=726187
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-6/+6
| | | | Instead of Return value:
* Docs: Remove all entities and turn off sgml modeMatthias Clasen2014-02-091-2/+2
| | | | | With all element markup gone, it is time to turn off sgml mode, and get rid of entities as well.
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-3/+3
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-2/+2
| | | | https://wiki.gnome.org/Design/OS/Typography
* gdk: Document event compression betterMartin Renold2013-11-161-0/+4
| | | | | Advise against using GDK_POINTER_MOTION_HINT_MASK. Add pointers to gdk_window_set_event_compression() to the documentation.
* docs: Minor grammatical corrections.Murray Cumming2013-07-291-5/+5
|
* gdk: Convert mouse position to doubles, add new gettersAlexander Larsson2013-07-031-32/+99
| | | | | | | | We've long had double precision mouse coordinates on wayland (e.g. when rotating a window) but with the new scaling we even have it on X (and, its also in Xinput2), so convert all the internal mouse/device position getters to use doubles and add new accessors for the public APIs that take doubles instead of ints.
* GdkDevice: Fix an inverted assertionMatthias Clasen2012-06-201-1/+1
| | | | | | | gdk_device_list_slave_devices only makes sense to call on master devices, yet its g_return_if_fail check made it reject such devices. Pointed out by monty.
* Add _gdk_device_get_axis_infoAlexander Larsson2012-04-031-0/+23
| | | | This is needed for the win32 master/slave handling code.
* gdk: Make query_state() vfunc a void vfuncBenjamin Otte2012-03-091-10/+10
| | | | | | | ... and make sure the backends implement it that way. query_state() return value was ignored in all of GDK and caused crashes when it failed.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* GdkDevice: Remove duplicate private functionCarlos Garnacho2011-04-081-10/+0
| | | | | | _gdk_device_get_axis_use() dates back to pre-sealing, when the xi2 work began, this remaining can be gone with a public gdk_device_get_axis_use() function already in place.
* Remove support for GDK_NATIVE_WINDOWSAlexander Larsson2011-03-081-4/+1
| | | | | | | | | | GDK_NATIVE_WINDOWS was a way to keep some old apps running that did weird things in gtk2. We should not have to carry this forwards in gtk 3.x. We do however keep a g_warning() call reminding people of this fact to ease debugging when they try to port their applications. https://bugzilla.gnome.org/show_bug.cgi?id=644119
* Give the GDK docs some loveMatthias Clasen2011-02-091-2/+2
| | | | | Reorganize some sections, drop the largely redundant multihead section, add some more information about multiple backends.
* Do not modify associated device for non-master devices on disposeCarlos Garnacho2011-01-241-1/+3
| | | | | | | | | | | | | | | | Only master devices must modify the associated device to separate a pointer/keyboard pair, slave devices must only call _gdk_device_remove_slave(). Fixes bug 639767 - password not accepted in gnome-screensaver dialog, reported by Frederic Crozat. On VT-switch, the X server removes its grab on HW devices, the effect on clients is that slave devices disappear, and these were mistakenly mangling the master device hierarchy. so gdk_device_get_associated_device() on the client pointer wouldn't return the paired keyboard anymore. The final effect is that gtkplug-x11 wasn't setting a keyboard to its generated events.
* Add extra checks for GdkDevice functions that might fail on slave devices.Carlos Garnacho2011-01-241-2/+20
| | | | Documentation bits have been added as well.
* [gi] Added missing (allow-none) annotation to gdk_device_grabSebastian Pölsterl2011-01-211-1/+1
|
* [GI] Mark unintrospectable constructs as (skip)Pavel Holejsovsky2011-01-201-7/+7
| | | | | Also adds 'Rename to:' annotation to some constructs replacing the skipped ones.
* [GI] Add missing (out) and (array) annotationsPavel Holejsovsky2011-01-201-2/+2
|
* [GI] Fixes of existing incorrect annotationsPavel Holejsovsky2011-01-201-3/+3
|
* [GI] Add (type) annotations to real typesPavel Holejsovsky2011-01-201-3/+4
|
* gdk: Simplify codeBenjamin Otte2011-01-031-33/+13
| | | | Move a previous vfunc into the only caller.
* gdk: Get rid of GdkDisplayDeviceHooksBenjamin Otte2011-01-031-1/+33
| | | | | Move the only user to call the function directly and copy the called function over.
* gdk: Move get_device_state out of the display hooksBenjamin Otte2011-01-031-4/+10
| | | | Previous callers now use _gdk_device_query_state() directly.
* API: gdk: Remove gdk_device_set_source()Benjamin Otte2010-12-271-17/+0
| | | | The source of a device is not changeable.
* API: gdk: Make gdk_display_get_window_at_device_position() a device APIBenjamin Otte2010-12-271-0/+39
| | | | | It's now called gdk_device_get_window_at_position(). It doesn't make sense to keep device-specific API part of the display.
* API: gdk: gdk_display_get_device_state() => gdk_device_get_position()Benjamin Otte2010-12-271-0/+37
| | | | | The API was not display-specific, but belonged to the device. Also, we didn't find a user of the modifier mask, so we dropped it.
* Fix up GDK docsMatthias Clasen2010-12-251-0/+13
|
* docs: Add docs about how to get a GtkDeviceJavier Jardón2010-12-241-1/+4
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=637895
* API: gdk: gdk_display_warp_device() => gdk_device_warp()Benjamin Otte2010-12-211-0/+34
| | | | | warping devices has nothing to do with displays, so putting it there seems weird.
* Remove gdk_windowing_{get_device_state,window_at_device_position}Matthias Clasen2010-12-211-0/+35
| | | | | The !trusted workaround code is pushed down into the GdkDevice subclasses, and we use the device vfuncs directly in gdkdisplay.c
* Add a vfunc for _gdk_windowing_window_get_next_serialMatthias Clasen2010-12-211-1/+1
|