warpd
warpd copied to clipboard
In multi-monitor setup, pointer seems to be moving in two different screens at the same time
Showing up in a three-screen (2 external monitors in addition to my laptop screen) setup. Say I'm using screen A (pointer is in screen A), and I use the screen-selection shortcut to choose Screen C (now I can see the red-dot in Screen C). Now two odd things happen:
- When I'm moving the pointer around in Screen C, I can stuff getting highlighted in Screen A (like a ghost pointer, I can't see the arrow in A, the red dot is moving in Screen C clearly)
- When I click on stuff on Screen C, elements don't get clicked, BUT stuff at the same spot in Screen A gets clicked.
It's as if there's a split-brain - pointer is moving about in C visually (as shown by the red dot), but interactions are happening in Screen A (as shown by the UI elements getting highlighted, and stuff getting clicked). Easy to verify using right-click (as the right-click menu pops up in the wrong screen - even when the red-dot is in Screen C, the drop-down menu comes up in Screen A)
https://user-images.githubusercontent.com/109176615/200697681-71878c5f-aed7-48a9-b710-5e463cea9df9.mov
https://user-images.githubusercontent.com/109176615/200698107-7dcaa69a-2d7e-4b35-9c1d-12985a8e939e.mp4
OS: MacOS Monterey 12.6.1 Tried to record the screens (I'm not sure how to record two screens simultaneously in OS X, so I had to do 2 separate recordings)
Current Config:
left: j
down: k
up: i
right: l
hint_activation_key: C-m
grid_activation_key: C-,
activation_key: C-.
screen_activation_key: C-/
exit: [
buttons: f d s
scroll_down: h
scroll_up: y
#62
Another symptom of the same issue: When the split-brain happens, choose-screen shortcut seems to show 2 letters in one screen (j
and k
in the image are both in Screen C), but one of them is actually referring to another screen (so here if I choose j
, the pointer will affect Screen A, but the pointer itself is moving around in Screen C)
Had to use a photo, because attempt to screenshot removes the letters j and k
I don't have access to a multi screen macos setup at the moment, but will investigate when I get some time. In the meantime can you ensure you are using the latest commit (b9f65f91)? Also ensure you are building from a clean working directory (make clean && make && sudo make install
).
Hey, thanks for the response. Appreciate you looking into it. I'll try to report as much as I can when I'm using warpd. Yes, today I downloaded the latest commit and it still had similar issues - I also noticed that when I go to "Displays" and re-arrange my screens - it causes the warpd screen selector to become messed up (like 2 keys in the same screen etc)
But interestingly, it sorts itself out after launchctl kickstart -k gui/$UID/com.warpd.warpd
I've also noticed that the mess-up happens sometimes when my laptop wakes up after going to sleep (orthogonally sometimes the display gets re-arranged as a result - maybe this could be linked to that)
But as of now, the solution seems to be -> refresh warpd when the screen-selector goes awry (like how you'd do when you've to launch a new config)
It also happens to me. Is it possible to automatically restart (refresh) the warpd whenever the monitor connection status is changed?