forked from AuroraMiddleware/gtk
Quartz: Fix keyboard layout notification
Register for notifications before initializing keymaps
This commit is contained in:
parent
c2e6fcc92d
commit
78a0cdde83
@ -812,13 +812,13 @@ input_sources_changed_notification (CFNotificationCenterRef center,
|
||||
static void
|
||||
gdk_quartz_keymap_init (GdkQuartzKeymap *keymap)
|
||||
{
|
||||
update_keymap ();
|
||||
CFNotificationCenterAddObserver (CFNotificationCenterGetDistributedCenter (),
|
||||
keymap,
|
||||
input_sources_changed_notification,
|
||||
CFSTR ("AppleSelectedInputSourcesChangedNotification"),
|
||||
NULL,
|
||||
CFNotificationSuspensionBehaviorDeliverImmediately);
|
||||
update_keymap ();
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user