SnosMe / electron-overlay-window

Creating overlays is easy like never before
MIT License
200 stars 37 forks source link

Question regarding detaching #8

Closed pl4yradam closed 3 years ago

pl4yradam commented 3 years ago

Hi there,

I have implemented the package to run, but I see some strange behaviour. I see the docs say you can only run the overlay for 1 Window per LIVE electron main process?

Why can't you remove the overlay without ending your whole electron app?

To resolve: Do you suggest compiling an 'overlay.exe' that another electron overlay uses? It seems strange that the only solution is top stop your app.

SnosMe commented 3 years ago

This library was developed for another project, so there was no reason to implement such functionality. Proper lifecycle cleanup and state instances should be created to support this.

Currently, it intended to work with one window that has a stable non-changing title, if you need to hide overlay use CSS.

pl4yradam commented 3 years ago

Yep, I can see that it has been developed for a specific use case, info for anyone in the future reading:

https://github.com/SnosMe/electron-overlay-window/blob/master/src/lib/addon.c#L198