mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-29 05:34:23 +00:00
qt5: handle 'Qt::WindowMaximized' and 'Qt::WindowFullScreen'
Fixes #2952
This commit is contained in:
parent
601521c47a
commit
aa1488c768
@ -548,7 +548,14 @@ void QNitpickerPlatformWindow::setWindowState(Qt::WindowState state)
|
|||||||
{
|
{
|
||||||
if (qnpw_verbose)
|
if (qnpw_verbose)
|
||||||
qDebug() << "QNitpickerPlatformWindow::setWindowState(" << state << ")";
|
qDebug() << "QNitpickerPlatformWindow::setWindowState(" << state << ")";
|
||||||
|
|
||||||
QPlatformWindow::setWindowState(state);
|
QPlatformWindow::setWindowState(state);
|
||||||
|
|
||||||
|
if ((state == Qt::WindowMaximized) || (state == Qt::WindowFullScreen)) {
|
||||||
|
QRect screen_geometry { screen()->geometry() };
|
||||||
|
QWindowSystemInterface::handleGeometryChange(window(), screen_geometry);
|
||||||
|
setGeometry(screen_geometry);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
WId QNitpickerPlatformWindow::winId() const
|
WId QNitpickerPlatformWindow::winId() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user