dylanaraps / sowm

An itsy bitsy floating window manager (220~ sloc!).
MIT License
915 stars 73 forks source link

Force windows to be unique among all workspaces #88

Closed ghost closed 1 year ago

ghost commented 4 years ago

This is intended to correct issue #44 where opening a browser window in another workspace when a browser window is already open causes incorrect behavior.

In order to correct the problem, a function exists_win was added to prevent duplicate windows being inserted into other workspaces. A global macro constant NUM_WS was also required to ensure proper bounds in exists_win.

Unixsys commented 4 years ago

Could you make this a patch? Not all users need this feature. Thanks!

ghost commented 4 years ago

https://patch-diff.githubusercontent.com/raw/dylanaraps/sowm/pull/88.patch