hyprland-community / pyprland

Scratchpads & many goodies for Hyprland [maintainer=@fdev31]
MIT License
345 stars 15 forks source link

Fix scratchpad #121

Closed axelKeizoStahl closed 2 months ago

axelKeizoStahl commented 2 months ago

118

The problem is with the functionality of smart focusing. It tries to not switch focus to a scratchpad, but instead of seeing if the window is currently a scratchpad, it checks if it was when it was focused. I repaired this.

Now, if smart focusing is enabled, it will reopen any windows closed by a scratchpad's exclude rule once said scratchpad is closed. I believe this extra functionality makes sense for smart focusing, but of course it is up for discussion.

axelKeizoStahl commented 2 months ago

This is now just the bug fix, the "feature" will be put on a feature request and can be discussed there.