Skip to content
Snippets Groups Projects
Commit cc74697f authored by Prince Gupta's avatar Prince Gupta :speech_balloon: Committed by Rémi Denis-Courmont
Browse files

qml: check window fullscreen directly

parent 43bcb730
No related branches found
No related tags found
1 merge request!1595qt: fix CSD resize not working after video fullscreen
......@@ -188,10 +188,13 @@ Rectangle {
}
Loader {
active: (MainCtx.clientSideDecoration
&&
// NOTE: We don't want to steal the mouse when we are maximized or in fullscreen
!((MainCtx.intfMainWindow.visibility === Window.Maximized) || MainCtx.interfaceFullScreen))
active: {
var windowVisibility = MainCtx.intfMainWindow.visibility
return MainCtx.clientSideDecoration
&& (windowVisibility !== Window.Maximized)
&& (windowVisibility !== Window.FullScreen)
}
source: "qrc:///widgets/CSDMouseStealer.qml"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment