Skip to content

Commit

Permalink
Merge pull request #4635 from daschuer/lp1956144
Browse files Browse the repository at this point in the history
Fix segfault when using midi.sendShortMsg and platform vnc
  • Loading branch information
uklotzde authored Jan 18, 2022
2 parents 93c321e + ac5e4c4 commit bb0a004
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/util/screensaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@ void ScreenSaverHelper::triggerUserActivity()
name=getenv("DISPLAY");
}
display=XOpenDisplay(name);
XResetScreenSaver(display);
XCloseDisplay(display);
if (display != nullptr) {
XResetScreenSaver(display);
XCloseDisplay(display);
}
return;
}
// Disabling the method with DBus since it seems to be failing on several systems.
Expand Down

0 comments on commit bb0a004

Please sign in to comment.