set your electron window as wallpaper behind desktop icons
- set electron window as wallpaper
- support transparent window
- support mouse forwarding
- support keyboard forwarding
-
npm install electron-as-wallpaper --save
-
import {attach, detach, refresh} from "electron-as-wallpaper"; // or const {attach, detach, refresh} = require("electron-as-wallpaper"); attach(mainWindow, { transparent: true, forwardKeyboardInput: true, forwardMouseInput: true, }); detach(mainWindow); // if the window closed before detach, you can call refresh refresh();