Kha
Kha copied to clipboard
Changing to fullscreen\borderless in runtime make window permanently lose focus on Windows 10
Target: -g opengl windows OS: Windows 10. x64
First click goes thro the window. You also can't find window via Alt-Tab.
Works fine if you set borderless\fullscren in System.start() tho.
System.start({
title: "Test",
width: Std.int(1280),
height: Std.int(800),
window: {
windowFeatures: FeatureMinimizable,
mode: kha.WindowMode.Windowed
}
},
function (a: kha.Window) {
a.mode = kha.WindowMode.Fullscreen;
// or
a.changeWindowFeatures(FeatureMinimizable | FeatureBorderless);
}
);
Hi,
I also confirm this bug. Target: -g directx11 windows OS: Windows 10 x64
When I change the mode of the window, the window disappears from the task bar and block the desktop.
The code when I want to switch to the fullscreen:
function fullscreenEvent(key:KeyCode) {
switch (key) {
case F4:
if (Window.get(0).mode == WindowMode.Windowed) {
Window.get(0).mode = WindowMode.Fullscreen;
} else {
Window.get(0).mode = WindowMode.Windowed;
}
default:
}
}