improve Window GUI API

This commit is contained in:
Dany LE
2021-10-24 00:27:17 +02:00
parent aab242c1f7
commit 52709d5da4
5 changed files with 5417 additions and 5420 deletions

View File

@ -992,15 +992,9 @@ namespace OS {
// desktop[0].set "selected", -1
$(desktop).on("click", function (e) {
let el = $(e.target).parent();
if (!(el.length > 0)) {
return;
}
el = el.parent();
if (!(el.length > 0)) {
return;
}
if (el[0] !== desktop) {
let el = $(e.target).closest("afx-app-window")[0];
if(el)
{
return;
}
desktop.unselect();