Krfb needs ability to specify which screen to share
Mouse movement is transmitted incorrectly when primary monitor is not on the top-left position
|-----------------||
| ||
| secondary, 4k ||--------|
| || prim |
|-----------------||--------|
In my case primary screen is on the right side (at offset 3840) and secondary on the left side (at 0,0). Primary screen is shared with krfb (obviously, this is hardcoded). Mouse clicks and movements are transmitted to the secondary screen on the left side and not on primary (looks like missing addition of primary screen offset, 3840).
krfb.framebuffer.xcb: xcb framebuffer: Primary screen: "HDMI-A-0" , geometry: QRect(3840,1080 1920x1080) , device scaling: 1 , native size: QRect(3840,1080 1920x1080) , depth: 24
We need some concept in krfb that possibly allows to choose which screen to share, and track which of them is shared now, and at what offset. To be able to add screen's top-left corner offset to mouse movement/click events.
Related to https://bugs.kde.org/show_bug.cgi?id=313170