Commit 2191cf6
committed
fix: avoid hiding floating docks when the OBS app is not active.
This PR changes the behavior of floating docks on macOS to have them stay visible while the OBS app is not active.
The main change is to set the `NSWindow.hidesOnDeactivate` setting to false. This is enough to keep the docks visible.
The remaining changes are just making sure that this setting is consistent across all the different ways OBS creates docks.
In macOS, only one app can be "active" (aka "focused") at the time, and "floating panels" (OBS' docks in this case) disappear by default when their parent app is not active.
The issue is that disappearing floating panels defy many of the use cases that OBS is great for. For example:
- I'm doing game streaming on Twitch. I want to keep track of my chat.
- I have a floating panel displaying the "Twitch chat" dock on a side monitor.
- I click on my game, which becomes the active app. OBS is not the active app anymore, therefore the chat dock panel disappears.
This is a common issue between macOS users:
- https://obsproject.com/forum/threads/popped-out-docks-disappear-when-obs-is-not-in-focus.165011/
- https://obsproject.com/forum/threads/keep-dock-windows-visible-even-when-obs-is-not-in-focus.167324/1 parent 154088b commit 2191cf6
2 files changed
Lines changed: 35 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
10 | 21 | | |
11 | 22 | | |
12 | 23 | | |
| |||
43 | 54 | | |
44 | 55 | | |
45 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
46 | 77 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
0 commit comments