mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-17 14:29:56 +02:00
improve Window GUI API
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user