Closed tonsky closed 2 years ago
So, I found the problem:
The primaryOutput
we get at the start of getScreens
has different ID than the (single) output we get at info->outputs[o]
.
Other than ID they seem to be identical:
primaryOutput ID: 445
timestamp: 7820
crtc: 0
name: DP-0
nameLen: 4
mm_width: 0
mm_height: 0
connection: 1
subpixel_order: 0
ncrtc: 4
nclone: 0
nmode: 0
npreferred: 0
output ID: 447
timestamp: 7820
crtc: 0
name: DP-0
nameLen: 4
mm_width: 0
mm_height: 0
connection: 1
subpixel_order: 0
ncrtc: 4
nclone: 0
nmode: 0
npreferred: 0
I'm not sure what the proper solution is. Perhaps, we should compare names instead of IDs?
I guess the answer is just use first monitor in that case
https://github.com/HumbleUI/HumbleUI/issues/17