--- a/pidgin/gtkidle.c Mon Oct 14 02:07:07 2019 -0500
+++ b/pidgin/gtkidle.c Mon Oct 14 02:10:36 2019 -0500
@@ -83,29 +83,29 @@
/* Query the IOKit API */
- double idleSeconds = -1;
- io_iterator_t iter = 0;
- if (IOServiceGetMatchingServices(kIOMasterPortDefault, IOServiceMatching("IOHIDSystem"), &iter) == KERN_SUCCESS) {
- io_registry_entry_t entry = IOIteratorNext(iter);
- CFMutableDictionaryRef dict = NULL;
- status = IORegistryEntryCreateCFProperties(entry, &dict, kCFAllocatorDefault, 0);
- if (status == KERN_SUCCESS) {
- CFNumberRef obj = CFDictionaryGetValue(dict, CFSTR("HIDIdleTime"));
- int64_t nanoseconds = 0;
- if (CFNumberGetValue(obj, kCFNumberSInt64Type, &nanoseconds)) {
- idleSeconds = (double) nanoseconds / NSEC_PER_SEC;
- IOObjectRelease(entry);
+ double idleSeconds = -1; + io_iterator_t iter = 0; + if (IOServiceGetMatchingServices(kIOMasterPortDefault, IOServiceMatching("IOHIDSystem"), &iter) == KERN_SUCCESS) { + io_registry_entry_t entry = IOIteratorNext(iter); + CFMutableDictionaryRef dict = NULL; + status = IORegistryEntryCreateCFProperties(entry, &dict, kCFAllocatorDefault, 0); + if (status == KERN_SUCCESS) { + CFNumberRef obj = CFDictionaryGetValue(dict, CFSTR("HIDIdleTime")); + int64_t nanoseconds = 0; + if (CFNumberGetValue(obj, kCFNumberSInt64Type, &nanoseconds)) { + idleSeconds = (double) nanoseconds / NSEC_PER_SEC; + IOObjectRelease(entry);