- 21 Feb, 2020 26 commits
-
-
Matthias Clasen authored
Restructure the getters for event fields to be more targeted at particular event types. Update all callers, and replace all direct event struct access with getters. As a side-effect, this drops some unused getters.
-
Matthias Clasen authored
Events are refcounted structs, and we generally don't pass these as const.
-
Matthias Clasen authored
GTK is no longer relying on this.
-
Matthias Clasen authored
We can now get the target widget from the gesture that we are using to find the event in the first place.
-
Matthias Clasen authored
We already store the events; keep the target widget in addition. This is a step towards getting rid of gdk_event_get_target.
-
Matthias Clasen authored
Make it possible for event controllers to obtain the target widget during handle_event.
-
Matthias Clasen authored
Pass the event propagation target explicitly down to the event controllers. This is a step towards getting rid of gdk_event_set_target.
-
Matthias Clasen authored
We are now sending crossing events (which are the only ones where a related target makes sense) via handle_crossing.
-
Matthias Clasen authored
The event propagation limit should apply to crossing events as well.
-
Matthias Clasen authored
-
Matthias Clasen authored
Instead of relying on gdk's antiquated crossing events, create a new GtkCrossingData struct that contains the actual widgets, and a new event controller vfunc that expects this struct. This also saves us from making sense of X's crossing modes and details, and makes for a generally simpler api. The ::focus-in and ::focus-out signals of GtkEventControllerKey have been replaced by a single ::focus-change signal that takes GtkCrossingData as an argument. All callers have been updated.
-
Matthias Clasen authored
-
Matthias Clasen authored
This is no longer used.
-
Matthias Clasen authored
-
Matthias Clasen authored
This is just a thin wrapper around gdk_event_get_target, so use that directly.
-
Matthias Clasen authored
We want to make events readonly, so stop translating their coordinates and instead pass the translated coordinates separately, when propagating events.
-
Matthias Clasen authored
Events of type GDK_NOTHING are good for nothing.
-
Matthias Clasen authored
Use gdk_event_ref/unref instead of g_object_ref/unref. Events will stop being object soon.
-
Matthias Clasen authored
No backend is emitting GDK_DESTROY events anymore, so no need to carry this around.
-
Matthias Clasen authored
We don't have child windows anymore, so there is no difference.
-
Matthias Clasen authored
-
Matthias Clasen authored
-
Matthias Clasen authored
-
Matthias Clasen authored
Use the new event constructors when generating events for emulating presses.
-
Matthias Clasen authored
-
Matthias Clasen authored
At the same time, stop setting child_surface in crossing events. Nothing in GTK looks at it.
-
- 20 Feb, 2020 14 commits
-
-
Timm Bäder authored
-
Timm Bäder authored
-
Timm Bäder authored
Closes #1013
-
Timm Bäder authored
-
Timm Bäder authored
Instead of a fake one where we add .menu to a normal popover. This makes the menu look like other context menus.
-
Timm Bäder authored
Otherwise it doesn't know what to do with its child widget.
-
Timm Bäder authored
This is triggered by typing / or hitting Ctrl+L. Since we don't have a visual indicator for this mode right now anyway, the reason for not allowing it in recent mode cited in the comment just above the early-exit is irrelevant. Closes #2178
-
Timm Bäder authored
-
Timm Bäder authored
Unused.
-
Timm Bäder authored
Everything is automatically redrawn when changing the value, etc.
-
Timm Bäder authored
We add the .menu css class to the popover main node, not its contents node.
-
Timm Bäder authored
-
Timm Bäder authored
This brings us closer to the old GtkMenuItem behavior and also makes more sense.
-
Timm Bäder authored
-