scene: Move overlay window resizing to backends
The concept of an overlay window is not universal, it's X11 specific.
This commit is contained in:
parent
e171555f2d
commit
4ecb00889c
2 changed files with 2 additions and 8 deletions
|
@ -81,9 +81,7 @@ void EglBackend::init()
|
|||
|
||||
void EglBackend::screenGeometryChanged(const QSize &size)
|
||||
{
|
||||
Q_UNUSED(size)
|
||||
|
||||
// TODO: base implementation in OpenGLBackend
|
||||
overlayWindow()->resize(size);
|
||||
|
||||
// The back buffer contents are now undefined
|
||||
m_bufferAge = 0;
|
||||
|
|
|
@ -69,7 +69,6 @@
|
|||
#include "x11client.h"
|
||||
#include "deleted.h"
|
||||
#include "effects.h"
|
||||
#include "overlaywindow.h"
|
||||
#include "renderloop.h"
|
||||
#include "screens.h"
|
||||
#include "shadow.h"
|
||||
|
@ -531,10 +530,7 @@ void Scene::extendPaintRegion(QRegion ®ion, bool opaqueFullscreen)
|
|||
|
||||
void Scene::screenGeometryChanged(const QSize &size)
|
||||
{
|
||||
if (!overlayWindow()) {
|
||||
return;
|
||||
}
|
||||
overlayWindow()->resize(size);
|
||||
Q_UNUSED(size)
|
||||
}
|
||||
|
||||
bool Scene::makeOpenGLContextCurrent()
|
||||
|
|
Loading…
Reference in a new issue