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