Commit 728d2a4a authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Improve focus handling when switching to fullscreen monitor.

Related to #859
parent ed8eaeef
......@@ -952,6 +952,7 @@ void Monitor::slotSwitchFullScreen(bool minimizeOnly)
m_glWidget->showNormal();
auto *lay = (QVBoxLayout *)layout();
lay->insertWidget(0, m_glWidget, 10);
setFocus();
}
}
......
......@@ -50,6 +50,7 @@ MouseArea {
id: fullscreenButton
objectName: "fullScreen"
icon.name: "view-fullscreen"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Switch Full Screen")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment