1
0
Fork 0

Only hide popups when window is raised, not on every state change

This commit is contained in:
TheFGFSEagle 2023-01-18 15:24:46 +01:00 committed by James Turner
parent 3e861b0a44
commit 1faedb04a2

View file

@ -308,6 +308,10 @@ var Window = {
me.setInt("z-index", me.get("z-index", gui.STACK_INDEX["default"]));
me.setFocus();
foreach(var p; gui.open_popups) {
p.hide();
}
},
hide: func()
{
@ -359,11 +363,6 @@ var Window = {
_onStateChange: func
{
var event = canvas.CustomEvent.new("wm.focus-" ~ (me._focused ? "in" : "out"));
if (me._focused) {
foreach(var p; gui.open_popups) {
p.hide();
}
}
if( me._getCanvasDecoration() != nil )
{