Update x11_util.cc

This commit is contained in:
Alexander David Frick 2021-11-18 13:17:44 -06:00 committed by GitHub
parent dada37b5e2
commit 9b0fc2d752
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -814,12 +814,13 @@ bool IsX11WindowFullScreen(x11::Window window) {
return window_rect.size() == gfx::Size(width, height);
}
void SuspendX11ScreenSaver(bool suspend) {
bool SuspendX11ScreenSaver(bool suspend) {
static const bool kScreenSaverAvailable = IsX11ScreenSaverAvailable();
if (!kScreenSaverAvailable)
return;
return false;
x11::Connection::Get()->screensaver().Suspend({suspend});
return true;
}
void StoreGpuExtraInfoIntoListValue(x11::VisualId system_visual,