1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Remove not needed check

This commit is contained in:
Michael Vetter 2023-08-11 15:34:26 +02:00
parent f56ce07141
commit a17544d962

View File

@ -156,7 +156,7 @@ ui_get_idle_time(void)
#ifdef HAVE_LIBXSS
if (display) {
XScreenSaverInfo* info = XScreenSaverAllocInfo();
if (info && display) {
if (info) {
XScreenSaverQueryInfo(display, DefaultRootWindow(display), info);
unsigned long result = info->idle;
XFree(info);