SnosMe / electron-overlay-window

Creating overlays is easy like never before
MIT License
201 stars 38 forks source link

[windows] Fullscreen not working as expected #26

Closed Iamproplayer7 closed 5 months ago

Iamproplayer7 commented 2 years ago

Fullscreen not working, as looking at source it's should work, but event not getting emit and overlay not working in fullscreen mode, borderless windowed everything works good, but at fullscreen nothing on screen,

SnosMe commented 2 years ago
Iamproplayer7 commented 5 months ago
  • This event is emitted only on Linux.
  • X11 should support _NET_WM_STATE_FULLSCREEN.
  • I wouldn't be surprised if something breaks inside X11 on your dist, considering my discovery that the order of events is not same Overlay may appear on the wrong screen #16

Can you try demo example in game called Live for Speed? Im using windows 11, multiple monitor. Fullscreen is not working when switched. It appears for sec and then it disapears forever in fullscreen mode, switching to borderless works again but fullscreen gone forever.

You can download game at https://www.lfs.net/downloads demo version just in main menu.

SnosMe commented 5 months ago

Im using windows 11, Fullscreen is not working

Linux fullscreen is actually the same thing as Borderless Fullsreen Window on Windows. In both cases desktop compositor allows to show overlay on top of window. The real Fullscreen mode that is only available on Windows is deprecated by OS, and because it doesn't use compositor, obviously overlay won't show up, so not a bug.