quartz: Stop emitting setting events

Not needed anymore.
This commit is contained in:
Matthias Clasen 2017-10-30 09:35:30 -04:00
parent d3e45cf087
commit 627c0ae549

View File

@ -64,26 +64,18 @@ gdk_quartz_ns_notification_callback (CFNotificationCenterRef center,
const void *object, const void *object,
CFDictionaryRef userInfo) CFDictionaryRef userInfo)
{ {
GdkEvent new_event; const char *setting = NULL;
new_event.type = GDK_SETTING;
new_event.setting.window = gdk_screen_get_root_window (_gdk_screen);
new_event.setting.send_event = FALSE;
new_event.setting.action = GDK_SETTING_ACTION_CHANGED;
new_event.setting.name = NULL;
/* Translate name */ /* Translate name */
if (CFStringCompare (name, if (CFStringCompare (name,
CFSTR("AppleNoRedisplayAppearancePreferenceChanged"), CFSTR("AppleNoRedisplayAppearancePreferenceChanged"),
0) == kCFCompareEqualTo) 0) == kCFCompareEqualTo)
new_event.setting.name = "gtk-primary-button-warps-slider"; setting = "gtk-primary-button-warps-slider";
if (!new_event.setting.name) if (!setting)
return; return;
gdk_event_put (&new_event); gdk_display_setting_changed (_gdk_display, setting);
gdk_display_setting_changed (_gdk_display, new_event.setting.name);
} }
static void static void