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,
|
||||
ClutterKeyEvent *event)
|
||||
{
|
||||
g_signal_emit (display, display_signals[ACCELERATOR_ACTIVATED],
|
||||
0, action, event->device, event->time);
|
||||
g_signal_emit (display, display_signals[ACCELERATOR_ACTIVATED], 0,
|
||||
action,
|
||||
clutter_event_get_source_device ((ClutterEvent *) event),
|
||||
event->time);
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user