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

Improve focus handling when switching to fullscreen monitor.

Related to #859
parent 7d3b3756
Pipeline #52517 canceled with stage
...@@ -949,6 +949,7 @@ void Monitor::slotSwitchFullScreen(bool minimizeOnly) ...@@ -949,6 +949,7 @@ void Monitor::slotSwitchFullScreen(bool minimizeOnly)
m_glWidget->showNormal(); m_glWidget->showNormal();
auto *lay = (QVBoxLayout *)layout(); auto *lay = (QVBoxLayout *)layout();
lay->insertWidget(0, m_glWidget, 10); lay->insertWidget(0, m_glWidget, 10);
setFocus();
} }
} }
......
...@@ -50,6 +50,7 @@ MouseArea { ...@@ -50,6 +50,7 @@ MouseArea {
id: fullscreenButton id: fullscreenButton
objectName: "fullScreen" objectName: "fullScreen"
icon.name: "view-fullscreen" icon.name: "view-fullscreen"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Switch Full Screen") 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