Electron prevents minimization due to win+D or returning to the desktop.

problem description

I want to develop a desktop widget similar to the one that comes with win7, such as the raindrop desktop, but win+D (or return to the desktop in the lower right corner) minimizes it.

the environmental background of the problems and what methods you have tried

I have tried that there is no minimize button for minimizable in the official documentation. I tried to return to the desktop or win+D, in the lower right corner will cause the program to be minimized. Then someone reminded me, what is the effect of automatically restoring the window if minimization is detected? I have also tried
mainWindow.on ("minimize", () = > {
console.log (" minimize")
mainWindow.restore ()
mainWindow.moveTop ()
})
, but the result is very interesting. If you click the minimize button, it will disappear and pop up again immediately, and there is process animation, which can barely achieve the effect. But by returning to the desktop or win+D, it will be minimized and no longer displayed. But I found something interesting. If I click on another window on the taskbar and want it to be displayed, for example, after win+D, I click the qq chat window, and the chat window appears with the electron program, and the console minimizes it twice.
then I tried again and found that the window property if minimizable: false,alwaysOnTop: true exists at the same time (only one of them can"t achieve the effect). Achieved the desired results, and there is no process animation, very satisfied. However, this thing certainly can not be on top all the time, it should be similar to the effect embedded in the wallpaper, so it still won"t work.
I really have no idea. Can I set the parent window as the system desktop like cPP?

what result do you expect?

make a desktop pendant like a raindrop desktop, or a built-in desktop pendant like win7.

Mar.03,2022

electron is software, wallpaper is wallpaper, maybe you have the wrong idea?

not to keep electron constant on the desktop, but to make electron change the system wallpaper;

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e49ab1-4d0ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e49ab1-4d0ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?