Skip to content

Commit

Permalink
Remove not needed check
Browse files Browse the repository at this point in the history
  • Loading branch information
jubalh committed Aug 11, 2023
1 parent f56ce07 commit a17544d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a17544d

Please sign in to comment.