mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Do not activate embedded mode for wayland
Embedded (fullscreen) mode was activated automatically if QPA platform type is eglfs, wayland or linuxfb. However although setting window size to -1 does result in fullscreen on eglfs, on wayland it results in "Client tried to set invalid geometry" Do not activate embedded mode for wayland. Closes #143
This commit is contained in:
parent
7c1c111699
commit
2844b5bd1a
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ ImageWriter::ImageWriter(QObject *parent)
|
||||||
connect(&_polltimer, SIGNAL(timeout()), SLOT(pollProgress()));
|
connect(&_polltimer, SIGNAL(timeout()), SLOT(pollProgress()));
|
||||||
|
|
||||||
QString platform = QGuiApplication::platformName();
|
QString platform = QGuiApplication::platformName();
|
||||||
if (platform == "eglfs" || platform == "wayland" || platform == "linuxfb")
|
if (platform == "eglfs" || platform == "linuxfb")
|
||||||
{
|
{
|
||||||
_embeddedMode = true;
|
_embeddedMode = true;
|
||||||
connect(&_networkchecktimer, SIGNAL(timeout()), SLOT(pollNetwork()));
|
connect(&_networkchecktimer, SIGNAL(timeout()), SLOT(pollNetwork()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue