Drop X11Compositor::isOverlayWindowVisible()
It's used once and OverlayWindow::isVisible() can be used instead.
This commit is contained in:
parent
9a5e51eb32
commit
8d70b1cbe1
2 changed files with 1 additions and 17 deletions
|
@ -150,7 +150,7 @@ void X11Compositor::stop()
|
|||
|
||||
void X11Compositor::composite(RenderLoop *renderLoop)
|
||||
{
|
||||
if (backend()->overlayWindow() && !isOverlayWindowVisible()) {
|
||||
if (backend()->overlayWindow() && !backend()->overlayWindow()->isVisible()) {
|
||||
// Return since nothing is visible.
|
||||
return;
|
||||
}
|
||||
|
@ -204,17 +204,6 @@ void X11Compositor::composite(RenderLoop *renderLoop)
|
|||
}
|
||||
}
|
||||
|
||||
bool X11Compositor::isOverlayWindowVisible() const
|
||||
{
|
||||
if (!backend()) {
|
||||
return false;
|
||||
}
|
||||
if (!backend()->overlayWindow()) {
|
||||
return false;
|
||||
}
|
||||
return backend()->overlayWindow()->isVisible();
|
||||
}
|
||||
|
||||
void X11Compositor::inhibit(Window *window)
|
||||
{
|
||||
m_inhibitors.insert(window);
|
||||
|
|
|
@ -85,11 +85,6 @@ public:
|
|||
bool openGLCompositingIsBroken() const override;
|
||||
void createOpenGLSafePoint(OpenGLSafePoint safePoint) override;
|
||||
|
||||
/**
|
||||
* @returns Whether the Scene's Overlay X Window is visible.
|
||||
*/
|
||||
bool isOverlayWindowVisible() const;
|
||||
|
||||
static X11Compositor *self();
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in a new issue