Update x11_util.cc
This commit is contained in:
parent
dada37b5e2
commit
9b0fc2d752
1 changed files with 3 additions and 2 deletions
|
@ -814,12 +814,13 @@ bool IsX11WindowFullScreen(x11::Window window) {
|
||||||
return window_rect.size() == gfx::Size(width, height);
|
return window_rect.size() == gfx::Size(width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SuspendX11ScreenSaver(bool suspend) {
|
bool SuspendX11ScreenSaver(bool suspend) {
|
||||||
static const bool kScreenSaverAvailable = IsX11ScreenSaverAvailable();
|
static const bool kScreenSaverAvailable = IsX11ScreenSaverAvailable();
|
||||||
if (!kScreenSaverAvailable)
|
if (!kScreenSaverAvailable)
|
||||||
return;
|
return false;
|
||||||
|
|
||||||
x11::Connection::Get()->screensaver().Suspend({suspend});
|
x11::Connection::Get()->screensaver().Suspend({suspend});
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void StoreGpuExtraInfoIntoListValue(x11::VisualId system_visual,
|
void StoreGpuExtraInfoIntoListValue(x11::VisualId system_visual,
|
||||||
|
|
Loading…
Reference in a new issue