i3 / i3

A tiling window manager for X11
https://i3wm.org/
BSD 3-Clause "New" or "Revised" License
9.46k stars 778 forks source link

Mouse cursor flickering with 90deg rotated secondary screen #3530

Closed pascalwhoop closed 2 years ago

pascalwhoop commented 5 years ago

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

I got a 3'rd display rotate 90 degrees. 2018-11-22_11-58-38

Once I applied this, the mouse cursor starts flickering when the hover event gets triggered and the cursor changes from e.g. a hand to a pointer etc. Unfortunately, the moment I try to use SimpleScreenRecorder to record this, the behavior is fixed. But I don't feel like running a screen recorder all day to avoid this ;-)

The cursor flickers in a 90 deg angle. So for a few milliseconds, the current cursor is displayed again about 1cm below the correct position, rotated counterclockwise (the opposite direction of my rotated screen --> it would look correct on the rotated screen), then it disappears.

┬─[pascalwhoop@pbr-pc:~]─[12:06:39 PM]
╰─>$ xrandr
Screen 0: minimum 8 x 8, current 5040 x 1920, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080     60.02*+  59.93    48.03  
   1680x1050     59.88  
   1400x1050     59.98  
   1600x900      60.00    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1368x768      60.00    59.88    59.85  
   1280x800      59.81    59.91  
   1280x720      59.86    60.00    59.74  
   1024x768      60.00  
   1024x576      60.00    59.90    59.82  
   960x540       60.00    59.63    59.82  
   800x600       60.32    56.25  
   864x486       60.00    59.92    59.57  
   640x480       59.94  
   720x405       59.51    60.00    58.99  
   640x360       59.84    59.32    60.00  
DP1 disconnected (normal left inverted right x axis y axis)
DP1-1 connected 1920x1200+1920+0 (normal left inverted right x axis y axis) 520mm x 320mm
   1920x1200     59.95*+
   1920x1080     60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
DP1-2 connected 1200x1920+3840+0 left (normal left inverted right x axis y axis) 520mm x 320mm
   1920x1200     59.95*+
   1920x1080     60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
DP1-3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

Reproduction Instructions

I guess adding a 2nd (3rd?) screen and rotating it 90 degrees with xrandr, seeing what happens

xrandr --output DP1-1 --auto --right-of 
xrandr --output DP1-2 --auto --right-of DP1-1 --rotate left

these are my settings for xrandr.

Environment

┬─[pascalwhoop@pbr-pc:~]─[12:08:07 PM]
╰─>$ i3 --moreversion 2>&-
Binary i3 version:  4.15.0.1 (03-13-2018) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.15.0.1 (03-13-2018) (pid 1509)ort…)
Loaded i3 config: /home/pascalwhoop/.config/i3/config (Last modified: Fri 16 Nov 2018 05:29:39 PM CET, 499128 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3

i3 config

┬─[pascalwhoop@pbr-pc:~]─[12:10:57 PM]
╰─>$ neofetch --off
pascalwhoop@pbr-pc 
------------------ 
OS: Manjaro Linux x86_64 
Host: Latitude 5590 
Kernel: 4.14.74-1-MANJARO 
Uptime: 3 days, 3 hours, 3 mins 
Packages: 1302 (pacman) 
Shell: fish 2.7.1 
Resolution: 1920x1080, 1920x1200, 1200x1920 
WM: i3 
Theme: Arc-Dark [GTK2/3] 
Icons: Papirus [GTK2/3] 
Terminal: urxvt 
Terminal Font: Fantasque Sans Mono NF 
CPU: Intel i7-8650U (8) @ 4.200GHz 
GPU: Intel UHD Graphics 620 
Memory: 10057MiB / 15924MiB 
i3bot commented 5 years ago

I don’t see a link to logs.i3wm.org. Did you follow https://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

Airblader commented 5 years ago

Reopening because I'm not aware of any change in 4.16 that would fix this (though it'd still be appreciated to reproduce it there)

pascalwhoop commented 5 years ago

still the same with minor 16

pascalwhoop commented 5 years ago

I'm a little hesitant to take a screen recording with my phone just because it feels so absolutely retarded to do so but the SimpleScreenRecorder literally makes the issue disappear so... if you think it helps, I'll be the guy taking a video of his screen ;-)

Airblader commented 5 years ago

i3 does actually very little with the mouse cursor, so I'm not really sure if there's anything we need to do differently, but it can certainly be investigated. :-)

Airblader commented 5 years ago

@pascalwhoop I think that's fine, we don't need to see it happen for now I think. Just wanted to make sure it still happens on 4.16.

pascalwhoop commented 5 years ago

killing compton --> still the same.

vaygr commented 2 years ago

I have the same issue with exact same screen setup. Unfortunately it's wm-unrelated. It's reproducible in all other WMs and pretty sure intel driver specific. When I switch to modesetting, the problem goes away. As it does when switching back that screen to landscape mode.

orestisfl commented 2 years ago

I'll close this as probably not i3 related. Feel free to start a discussion with the same issue.