mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
core: Use source device on ::accelerator-activated
Using the master device, as we did, won't yield the expected result when looking up the device node (it comes NULL as this is a virtual device). Use the slave device, as the g-s-d machinery essentially expects. https://gitlab.gnome.org/GNOME/mutter/merge_requests/678
This commit is contained in:
parent
0eab73dc2e
commit
78560b8426
@ -2621,8 +2621,10 @@ meta_display_accelerator_activate (MetaDisplay *display,
|
|||||||
guint action,
|
guint action,
|
||||||
ClutterKeyEvent *event)
|
ClutterKeyEvent *event)
|
||||||
{
|
{
|
||||||
g_signal_emit (display, display_signals[ACCELERATOR_ACTIVATED],
|
g_signal_emit (display, display_signals[ACCELERATOR_ACTIVATED], 0,
|
||||||
0, action, event->device, event->time);
|
action,
|
||||||
|
clutter_event_get_source_device ((ClutterEvent *) event),
|
||||||
|
event->time);
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user