mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Merge remote-tracking branch 'dmitry/next'
Conflicts: src/windows.c
This commit is contained in:
commit
7ae7b01e15
@ -208,21 +208,12 @@ ui_get_idle_time(void)
|
|||||||
unsigned long result = info->idle;
|
unsigned long result = info->idle;
|
||||||
XFree(info);
|
XFree(info);
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
// if we couldn't get a screensaverinfo, use profanity interaction idle time
|
|
||||||
// this may occur if compiled with libxss, but then run in a bare terminal
|
|
||||||
} else {
|
|
||||||
gdouble seconds_elapsed = g_timer_elapsed(ui_idle_time, NULL);
|
|
||||||
unsigned long ms_elapsed = seconds_elapsed * 1000.0;
|
|
||||||
return ms_elapsed;
|
|
||||||
}
|
}
|
||||||
|
// if no libxss or xss idle time failed, use profanity idle time
|
||||||
// if not compiled with libxss, just use profanity interaction idle time
|
#endif
|
||||||
#else
|
|
||||||
gdouble seconds_elapsed = g_timer_elapsed(ui_idle_time, NULL);
|
gdouble seconds_elapsed = g_timer_elapsed(ui_idle_time, NULL);
|
||||||
unsigned long ms_elapsed = seconds_elapsed * 1000.0;
|
unsigned long ms_elapsed = seconds_elapsed * 1000.0;
|
||||||
return ms_elapsed;
|
return ms_elapsed;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user