FelixKratz / JankyBorders

A lightweight window border system for macOS
GNU General Public License v3.0
1.23k stars 20 forks source link

#2 janky way to draw border for existing windows #5

Closed koekeishiya closed 1 year ago

koekeishiya commented 1 year ago

Janky solution for https://github.com/FelixKratz/JankyBorders/issues/2 Reads window ids of all spaces upon launch and creates a border for them, moving that border to the space that the window is on.

Ignores minimized windows and hidden applications. I believe these should be handled by a designated handler/event, but this code can probably be tweaked to include them if wanted.

Might be bugs, code is kinda quickly put together, so indentation and structure is terrible -- sorry for that. Feel free to use it as you please and rewrite instead of merging this PR.

FelixKratz commented 1 year ago

Looks perfect to me, there was one problem with window ordering which is fixed now. Thanks!