- 05 Apr, 2022 1 commit
-
-
hemidark authored
Since GdkTimeCoord stores only axis values, prior to this change, if a device didn't report GDK_AXIS_X or GDK_AXIS_Y, the history attached to merged motion events wouldn't contain any positional information. Commit 60122760 already addressed this issue for devices without tools by storing the event position in GdkTimeCoord using GDK_AXIS_X and GDK_AXIS_Y and augmenting the GdkTimeCoord's axis bitmask accordingly. This change generalizes that workaround to all devices. Note that if a device DOES report values for GDK_AXIS_X and GDK_AXIS_Y, those values won't be overwritten. Closes #4809
-
- 18 Mar, 2022 1 commit
-
-
panoplie authored
Add a new GdkScrollUnit enum that represent the unit of scroll deltas provided by GdkScrollEvent. The unit is accessible through gdk_scroll_event_get_unit().
-
- 26 Jan, 2022 2 commits
-
-
Allow to create hold events as well as the required functions to get information about the event: gesture phase, finger count, etc Part-of: <!3454>
-
Carlos Garnacho authored
This change is done for 2 reasons: - The logic to request this phase when compressing scroll events is slightly broken. If there are multiple scroll events that are coalesced into one, the surface frame clock will not get this request. The worst case is having >= 2 scroll events on every frame, as the compressed event will be left in the queue, and be further compressed on future events. - Even scroll events aside, this phase is requested in oddly specific places that are not enough to cover all events, others do rely on unrelated GdkFrameClock activity that happens to flush the events as well. Unify this phase request so it explicitly happens on the arrival of any event. This ensures that events (compressed or not) will be handled promptly after arrival.
-
- 01 Jan, 2022 1 commit
-
-
Bilal Elmoussaoui authored
-
- 20 Dec, 2021 1 commit
-
-
Matthias Clasen authored
We are not going to compress those anyway.
-
- 16 Dec, 2021 2 commits
-
-
Matthias Clasen authored
It makes sense to connect the begin/update/end events for touchpad swipes and pinches in a sequence. This commit adds the plumbing for it, but not backends are setting sequences yet.
-
Matthias Clasen authored
-
- 15 Dec, 2021 1 commit
-
-
Matthias Clasen authored
Collecting of history wasn't working correctly for either motion or scroll events.
-
- 24 Sep, 2021 2 commits
-
-
Benjamin Otte authored
-
Benjamin Otte authored
-
- 22 May, 2021 1 commit
-
-
Matthias Clasen authored
Replace leftover gtk-doc syntax (#Type) with backquotes.
-
- 21 May, 2021 1 commit
-
-
Matthias Clasen authored
Remove a boatload of "or %NULL" from nullable parameters and return values. gi-docgen generates suitable text from the annotation that we don't need to duplicate. This adds a few missing nullable annotations too.
-
- 26 Mar, 2021 1 commit
-
-
Matthias Clasen authored
Give each device a timestamp that reflects the last user activity with that device, as reflected in the events that are produced for this device.
-
- 15 Mar, 2021 1 commit
-
-
Matthias Clasen authored
GTK traditionally lets you activate keyboard shortcuts even if they are for a non-active layout. But it is meant to only activate with a keysym from a non-active layout when that symbol is not present in the current layout. That last condition was lost when key event handling was redone for GTK4. Bring it back.
-
- 11 Mar, 2021 3 commits
-
-
Convert links, make things more concise.
-
This is not really worth a chapter of its own.
-
Emmanuele Bassi authored
-
- 11 Feb, 2021 1 commit
-
-
Emmanuele Bassi authored
The g_memdup() function is replaced by a safer version in newer versions of GLib.
-
- 21 Dec, 2020 1 commit
-
-
Timm Bäder authored
The way this code is written trips up scan-build. Add gdk_event_dup_axes() and use it in gtkmain.c.
-
- 16 Dec, 2020 1 commit
-
-
Emmanuele Bassi authored
100% symbol docs coverage. 833 symbols documented. 0 symbols incomplete. 0 not documented. What's left are just type system macros and windowing system opaque structures.
-
- 07 Dec, 2020 1 commit
-
-
Jonas Ådahl authored
This removes the GDK_CONFIGURE event and all related functions and data types; it includes untested changes to the MacOSX, Win32 and Broadway backends.
-
- 19 Nov, 2020 1 commit
-
-
Christian Hergert authored
The use of volatile was incorrect in GLib and has been that way for a long time. Recently however that has changed, and this makes GTK follow suit to avoid using volatile in the type registration. See also: glib!1719 Combined with the above merge request for GLib, this fixes a large number of compilation warnings when using Clang.
-
- 23 Oct, 2020 1 commit
-
-
Matthias Clasen authored
The current code was marking queued events as flushed, but left them in the queue. That doesn't make sense to me - we should deliver all events we have before we reach the paint phase of the frame cycle.
-
- 08 Oct, 2020 1 commit
-
-
Matthias Clasen authored
No users of gdk_display_peek_event, gdk_display_has_pending _gdk_display_event_data_copy or _gdk_display_event_data_free, so drop all of these, and related vfuncs.
-
- 14 Aug, 2020 1 commit
-
-
Matthias Clasen authored
Move things to the private headers they belong in.
-
- 06 Aug, 2020 1 commit
-
-
Matthias Clasen authored
We were leaking the last event in a sequence of scroll events.
-
- 05 Aug, 2020 1 commit
-
-
Matthias Clasen authored
Clean up references to no-longer-existing APIs.
-
- 28 Jul, 2020 2 commits
-
-
Carlos Garnacho authored
Make GdkEvents hold a single GdkDevice. This device is closer to the logical device conceptually, although it must be sufficient for device checks (i.e. GdkInputSource), which makes it similar to the physical devices. Make the logical devices have a more accurate GdkInputSource where needed, and conflate the event devices altogether.
-
Carlos Garnacho authored
Instead of doing device-specific translations of array positions, use GdkAxisUse as an array index right away.
-
- 24 Jul, 2020 3 commits
-
-
Benjamin Otte authored
-
Benjamin Otte authored
-
Benjamin Otte authored
-
- 28 Jun, 2020 1 commit
-
-
Matthias Clasen authored
Make sure gdk_event_get_seat shows up.
-
- 23 Jun, 2020 1 commit
-
-
Carlos Garnacho authored
It currently fetches the seat from the event device, will be changed in future commits.
-
- 18 Jun, 2020 1 commit
-
-
Emmanuele Bassi authored
We already use the "logical/virtual" and "physical" names in the documentation, there's no reason to use loaded terms just because X11 uses them.
-
- 09 Jun, 2020 4 commits
-
-
Matthias Clasen authored
We were casting scroll events to motion events rather carelessly. Don't do that.
-
Matthias Clasen authored
Add some useful information about event history.
-
Matthias Clasen authored
Scroll events can have history too, so make a getter that works for both. This drops the gdk_scroll_event_get_history getter that was added a few commits earlier, since we now store scroll history in the same way as motion history. Update the docs, and all callers.
-
Matthias Clasen authored
Similar to how we keep motion history for compressed events, keep scroll history for compressed scroll events.
-