SnosMe / electron-overlay-window

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

Fix re-focusing target and expose bounds object on 3.0 #22

Closed hsource closed 1 year ago

hsource commented 3 years ago

Fix re-focusing

Motivation

I noticed that when in the demo app, after pressing Cmd + J twice, it didn't allow typing into Notepad/TextEdit again.

Fix

Change focusTarget to call electronWindow.setIgnoreMouseEvents(true) again

Testing

Before After
Before After

Expose bounds object

Motivation

Awakened POE Trade tries to get the bounds, but it's not exposed publicly.

Fix

Change #lastBounds to bounds

Testing

Ran with Awakened POE Trade. It gets rid of a big full-screen error about not being able to get bounds.