Skip to content

Conversation

@Francesco149
Copy link

this is useful when you're running a multi-monitor setup and want some windows to persist on all desktops (such as having a performance monitor on your 2nd monitor)

the hotkey for pinning is CTRL + SHIFT + ALT + P

I opted for a small fixed size array to save memory since you're not gonna pin many windows anyway

it's kind of a big patch (40+ lines) so I understand if you don't want to merge it to keep the lines of code count low

tecnically using 0 as the empty hwnd value is wrong, but it's highly unlikely that a window that isn't a system window is gonna have HWND = 0, so it should be fine and it saves having to initialize the array to INVALID_WINDOW_HANDLE in virgo_init

kitty-panics added a commit to kitty-panics/virgo that referenced this pull request Apr 7, 2023
Title: implement window pinning
Links: henkman#21

```Describe-Text
this is useful when you're running a multi-monitor setup and want some windows to persist on all desktops (such as having a performance monitor on your 2nd monitor)

the hotkey for pinning is CTRL + SHIFT + ALT + P

I opted for a small fixed size array to save memory since you're not gonna pin many windows anyway

it's kind of a big patch (40+ lines) so I understand if you don't want to merge it to keep the lines of code count low

tecnically using 0 as the empty hwnd value is wrong, but it's highly unlikely that a window that isn't a system window is gonna have HWND = 0, so it should be fine and it saves having to initialize the array to INVALID_WINDOW_HANDLE in virgo_init
```
wwxiaoqi added a commit to wwxiaoqi/virgo that referenced this pull request Aug 18, 2023
Title: implement window pinning
Links: henkman#21

```Describe-Text
this is useful when you're running a multi-monitor setup and want some windows to persist on all desktops (such as having a performance monitor on your 2nd monitor)

the hotkey for pinning is CTRL + SHIFT + ALT + P

I opted for a small fixed size array to save memory since you're not gonna pin many windows anyway

it's kind of a big patch (40+ lines) so I understand if you don't want to merge it to keep the lines of code count low

tecnically using 0 as the empty hwnd value is wrong, but it's highly unlikely that a window that isn't a system window is gonna have HWND = 0, so it should be fine and it saves having to initialize the array to INVALID_WINDOW_HANDLE in virgo_init
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant