You are not logged in.

#1 2025-10-23 14:16:12

Stef99
Member
Registered: 2024-09-06
Posts: 48

Weird mouse cursor behavior with dual monitor setup in KDE plasma

Games on steam without PROTON_ENABLE_WAYLAND=1 (Im using proton-GE) have a issue where if i click on the second monitor, the game window will minimize all the time, nothing seems to fix it other than setting the game on windowed settings. With PROTON_ENABLE_WAYLAND=1 this doesnt happen but the mouse cursor is not restricted to the main monitor, it escapes to the second monitor if the mouse cursor is moved to its side and unless I restrict the mouse input via winecfg with protontricks, this doesn't stop.
I did some testing and in the flatpak version of steam this doesn't happen and it works just fine which leads me to believe theres something wrong with kwin and plasma that makes this issue happen. No window rule has been set for anything and this has been happening since plasma 6.4.
Any ideas? Maybe I installed the wrong drivers?

 xrandr --verbose
Screen 0: minimum 16 x 16, current 4000 x 2560, maximum 32767 x 32767
DP-1 connected primary 2560x1440+1440+1120 (0x25) normal (normal left inverted right x axis y axis) 596mm x 335mm
        Identifier: 0x21
        Timestamp:  1088512
        Subpixel:   unknown
        Gamma:      1.0:1.0:1.0
        Brightness: 0.0
        Clones:    
        CRTC:       0
        CRTCs:      0
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        RANDR Emulation: 1 
        non-desktop: 0 
                supported: 0, 1
  2560x1440 (0x25) 939.000MHz -HSync +VSync *current +preferred
        h: width  2560 start 2792 end 3072 total 3584 skew    0 clock 262.00KHz
        v: height 1440 start 1443 end 1448 total 1588           clock 164.99Hz
  1920x1440 (0x26) 704.250MHz -HSync +VSync
        h: width  1920 start 2096 end 2304 total 2688 skew    0 clock 262.00KHz
        v: height 1440 start 1443 end 1447 total 1588           clock 164.99Hz
  1600x1200 (0x27) 489.250MHz -HSync +VSync
        h: width  1600 start 1744 end 1920 total 2240 skew    0 clock 218.42KHz
        v: height 1200 start 1203 end 1207 total 1324           clock 164.97Hz
  1440x1080 (0x28) 393.250MHz -HSync +VSync
        h: width  1440 start 1560 end 1720 total 2000 skew    0 clock 196.62KHz
        v: height 1080 start 1083 end 1087 total 1192           clock 164.95Hz
  1400x1050 (0x29) 371.500MHz -HSync +VSync
        h: width  1400 start 1520 end 1672 total 1944 skew    0 clock 191.10KHz
        v: height 1050 start 1053 end 1057 total 1159           clock 164.88Hz
  1280x1024 (0x2a) 331.000MHz -HSync +VSync
        h: width  1280 start 1392 end 1528 total 1776 skew    0 clock 186.37KHz
        v: height 1024 start 1027 end 1034 total 1130           clock 164.93Hz
  1280x960 (0x2b) 310.500MHz -HSync +VSync
        h: width  1280 start 1392 end 1528 total 1776 skew    0 clock 174.83KHz
        v: height  960 start  963 end  967 total 1060           clock 164.93Hz
  1152x864 (0x2c) 251.750MHz -HSync +VSync
        h: width  1152 start 1248 end 1376 total 1600 skew    0 clock 157.34KHz
        v: height  864 start  867 end  871 total  954           clock 164.93Hz
  1024x768 (0x2d) 197.000MHz -HSync +VSync
        h: width  1024 start 1104 end 1216 total 1408 skew    0 clock 139.91KHz
        v: height  768 start  771 end  775 total  848           clock 164.99Hz
  800x600 (0x2e) 119.000MHz -HSync +VSync
        h: width   800 start  864 end  944 total 1088 skew    0 clock 109.38KHz
        v: height  600 start  603 end  607 total  664           clock 164.72Hz
  640x480 (0x2f) 75.750MHz -HSync +VSync
        h: width   640 start  688 end  752 total  864 skew    0 clock  87.67KHz
        v: height  480 start  483 end  487 total  532           clock 164.80Hz
  320x240 (0x30) 18.250MHz -HSync +VSync
        h: width   320 start  336 end  368 total  416 skew    0 clock  43.87KHz
        v: height  240 start  243 end  247 total  268           clock 163.69Hz
  1920x1200 (0x31) 587.000MHz -HSync +VSync
        h: width  1920 start 2096 end 2304 total 2688 skew    0 clock 218.38KHz
        v: height 1200 start 1203 end 1209 total 1324           clock 164.94Hz
  1680x1050 (0x32) 446.500MHz -HSync +VSync
        h: width  1680 start 1824 end 2008 total 2336 skew    0 clock 191.14KHz
        v: height 1050 start 1053 end 1059 total 1159           clock 164.92Hz
  1440x900 (0x33) 327.750MHz -HSync +VSync
        h: width  1440 start 1560 end 1720 total 2000 skew    0 clock 163.88KHz
        v: height  900 start  903 end  909 total  994           clock 164.86Hz
  1280x800 (0x34) 258.750MHz -HSync +VSync
        h: width  1280 start 1392 end 1528 total 1776 skew    0 clock 145.69KHz
        v: height  800 start  803 end  809 total  884           clock 164.81Hz
  1152x720 (0x35) 207.750MHz -HSync +VSync
        h: width  1152 start 1248 end 1368 total 1584 skew    0 clock 131.16KHz
        v: height  720 start  723 end  729 total  796           clock 164.77Hz
  960x600 (0x36) 143.500MHz -HSync +VSync
        h: width   960 start 1032 end 1136 total 1312 skew    0 clock 109.38KHz
        v: height  600 start  603 end  609 total  664           clock 164.72Hz
  928x580 (0x37) 133.750MHz -HSync +VSync
        h: width   928 start 1000 end 1096 total 1264 skew    0 clock 105.81KHz
        v: height  580 start  583 end  589 total  642           clock 164.82Hz
  800x500 (0x38) 99.250MHz -HSync +VSync
        h: width   800 start  864 end  944 total 1088 skew    0 clock  91.22KHz
        v: height  500 start  503 end  509 total  554           clock 164.66Hz
  768x480 (0x39) 91.000MHz -HSync +VSync
        h: width   768 start  824 end  904 total 1040 skew    0 clock  87.50KHz
        v: height  480 start  483 end  489 total  532           clock 164.47Hz
  720x480 (0x3a) 85.500MHz -HSync +VSync
        h: width   720 start  776 end  848 total  976 skew    0 clock  87.60KHz
        v: height  480 start  483 end  493 total  532           clock 164.67Hz
  640x400 (0x3b) 62.000MHz -HSync +VSync
        h: width   640 start  680 end  744 total  848 skew    0 clock  73.11KHz
        v: height  400 start  403 end  409 total  444           clock 164.67Hz
  320x200 (0x3c) 14.500MHz -HSync +VSync
        h: width   320 start  328 end  360 total  400 skew    0 clock  36.25KHz
        v: height  200 start  203 end  209 total  224           clock 161.83Hz
  2048x1152 (0x3d) 600.500MHz -HSync +VSync
        h: width  2048 start 2232 end 2456 total 2864 skew    0 clock 209.67KHz
        v: height 1152 start 1155 end 1160 total 1271           clock 164.97Hz
  1920x1080 (0x3e) 525.250MHz -HSync +VSync
        h: width  1920 start 2088 end 2296 total 2672 skew    0 clock 196.58KHz
        v: height 1080 start 1083 end 1088 total 1192           clock 164.91Hz
  1600x900 (0x3f) 364.500MHz -HSync +VSync
        h: width  1600 start 1736 end 1912 total 2224 skew    0 clock 163.89KHz
        v: height  900 start  903 end  908 total  994           clock 164.88Hz
  1368x768 (0x40) 265.250MHz -HSync +VSync
        h: width  1368 start 1488 end 1632 total 1896 skew    0 clock 139.90KHz
        v: height  768 start  771 end  781 total  848           clock 164.98Hz
  1280x720 (0x41) 231.000MHz -HSync +VSync
        h: width  1280 start 1384 end 1520 total 1760 skew    0 clock 131.25KHz
        v: height  720 start  723 end  728 total  796           clock 164.89Hz
  1024x576 (0x42) 146.250MHz -HSync +VSync
        h: width  1024 start 1104 end 1208 total 1392 skew    0 clock 105.06KHz
        v: height  576 start  579 end  584 total  637           clock 164.94Hz
  864x486 (0x43) 103.500MHz -HSync +VSync
        h: width   864 start  928 end 1016 total 1168 skew    0 clock  88.61KHz
        v: height  486 start  489 end  494 total  538           clock 164.71Hz
  720x400 (0x44) 70.000MHz -HSync +VSync
        h: width   720 start  768 end  840 total  960 skew    0 clock  72.92KHz
        v: height  400 start  403 end  413 total  444           clock 164.23Hz
  640x350 (0x45) 54.250MHz -HSync +VSync
        h: width   640 start  680 end  744 total  848 skew    0 clock  63.97KHz
        v: height  350 start  353 end  363 total  389           clock 164.46Hz
DP-2 connected 1440x2560+0+0 (0x46) right (normal left inverted right x axis y axis) 597mm x 336mm
        Identifier: 0x23
        Timestamp:  1088512
        Subpixel:   unknown
        Gamma:      1.0:1.0:1.0
        Brightness: 0.0
        Clones:    
        CRTC:       1
        CRTCs:      1
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        RANDR Emulation: 1 
        non-desktop: 0 
                supported: 0, 1
  2560x1440 (0x46) 397.000MHz -HSync +VSync *current +preferred
        h: width  2560 start 2760 end 3040 total 3520 skew    0 clock 112.78KHz
        v: height 1440 start 1443 end 1448 total 1506           clock  74.89Hz
  1920x1440 (0x47) 297.750MHz -HSync +VSync
        h: width  1920 start 2072 end 2280 total 2640 skew    0 clock 112.78KHz
        v: height 1440 start 1443 end 1447 total 1506           clock  74.89Hz
  1600x1200 (0x48) 204.500MHz -HSync +VSync
        h: width  1600 start 1720 end 1888 total 2176 skew    0 clock  93.98KHz
        v: height 1200 start 1203 end 1207 total 1255           clock  74.88Hz
  1440x1080 (0x49) 165.250MHz -HSync +VSync
        h: width  1440 start 1544 end 1696 total 1952 skew    0 clock  84.66KHz
        v: height 1080 start 1083 end 1087 total 1130           clock  74.92Hz
  1400x1050 (0x4a) 156.000MHz -HSync +VSync
        h: width  1400 start 1504 end 1648 total 1896 skew    0 clock  82.28KHz
        v: height 1050 start 1053 end 1057 total 1099           clock  74.87Hz
  1280x1024 (0x4b) 138.750MHz -HSync +VSync
        h: width  1280 start 1368 end 1504 total 1728 skew    0 clock  80.30KHz
        v: height 1024 start 1027 end 1034 total 1072           clock  74.90Hz
  1280x960 (0x4c) 130.000MHz -HSync +VSync
        h: width  1280 start 1368 end 1504 total 1728 skew    0 clock  75.23KHz
        v: height  960 start  963 end  967 total 1005           clock  74.86Hz
  1152x864 (0x4d) 104.000MHz -HSync +VSync
        h: width  1152 start 1224 end 1344 total 1536 skew    0 clock  67.71KHz
        v: height  864 start  867 end  871 total  905           clock  74.82Hz
  1024x768 (0x4e) 81.750MHz -HSync +VSync
        h: width  1024 start 1088 end 1192 total 1360 skew    0 clock  60.11KHz
        v: height  768 start  771 end  775 total  805           clock  74.67Hz
  800x600 (0x4f) 49.000MHz -HSync +VSync
        h: width   800 start  840 end  920 total 1040 skew    0 clock  47.12KHz
        v: height  600 start  603 end  607 total  629           clock  74.91Hz
  640x480 (0x50) 30.750MHz -HSync +VSync
        h: width   640 start  664 end  728 total  816 skew    0 clock  37.68KHz
        v: height  480 start  483 end  487 total  504           clock  74.77Hz
  320x240 (0x51)  7.500MHz -HSync +VSync
        h: width   320 start  328 end  360 total  400 skew    0 clock  18.75KHz
        v: height  240 start  243 end  247 total  254           clock  73.82Hz
  1920x1200 (0x52) 245.250MHz -HSync +VSync
        h: width  1920 start 2056 end 2264 total 2608 skew    0 clock  94.04KHz
        v: height 1200 start 1203 end 1209 total 1255           clock  74.93Hz
  1680x1050 (0x53) 187.000MHz -HSync +VSync
        h: width  1680 start 1800 end 1976 total 2272 skew    0 clock  82.31KHz
        v: height 1050 start 1053 end 1059 total 1099           clock  74.89Hz
  1440x900 (0x54) 136.500MHz -HSync +VSync
        h: width  1440 start 1536 end 1688 total 1936 skew    0 clock  70.51KHz
        v: height  900 start  903 end  909 total  942           clock  74.85Hz
  1280x800 (0x55) 106.250MHz -HSync +VSync
        h: width  1280 start 1360 end 1488 total 1696 skew    0 clock  62.65KHz
        v: height  800 start  803 end  809 total  838           clock  74.76Hz
  1152x720 (0x56) 85.750MHz -HSync +VSync
        h: width  1152 start 1216 end 1336 total 1520 skew    0 clock  56.41KHz
        v: height  720 start  723 end  729 total  755           clock  74.72Hz
  960x600 (0x57) 58.750MHz -HSync +VSync
        h: width   960 start 1008 end 1104 total 1248 skew    0 clock  47.08KHz
        v: height  600 start  603 end  609 total  629           clock  74.84Hz
  928x580 (0x58) 54.500MHz -HSync +VSync
        h: width   928 start  968 end 1064 total 1200 skew    0 clock  45.42KHz
        v: height  580 start  583 end  589 total  609           clock  74.58Hz
  800x500 (0x59) 40.250MHz -HSync +VSync
        h: width   800 start  832 end  912 total 1024 skew    0 clock  39.31KHz
        v: height  500 start  503 end  509 total  525           clock  74.87Hz
  768x480 (0x5a) 36.750MHz -HSync +VSync
        h: width   768 start  800 end  872 total  976 skew    0 clock  37.65KHz
        v: height  480 start  483 end  489 total  504           clock  74.71Hz
  720x480 (0x5b) 34.250MHz -HSync +VSync
        h: width   720 start  744 end  816 total  912 skew    0 clock  37.55KHz
        v: height  480 start  483 end  493 total  504           clock  74.51Hz
  640x400 (0x5c) 25.000MHz -HSync +VSync
        h: width   640 start  656 end  720 total  800 skew    0 clock  31.25KHz
        v: height  400 start  403 end  409 total  421           clock  74.23Hz
  320x200 (0x5d)  6.250MHz -HSync +VSync
        h: width   320 start  328 end  360 total  400 skew    0 clock  15.62KHz
        v: height  200 start  203 end  209 total  215           clock  72.67Hz
  2048x1152 (0x5e) 251.250MHz -HSync +VSync
        h: width  2048 start 2200 end 2416 total 2784 skew    0 clock  90.25KHz
        v: height 1152 start 1155 end 1160 total 1205           clock  74.89Hz
  1920x1080 (0x5f) 220.750MHz -HSync +VSync
        h: width  1920 start 2056 end 2264 total 2608 skew    0 clock  84.64KHz
        v: height 1080 start 1083 end 1088 total 1130           clock  74.91Hz
  1600x900 (0x60) 151.250MHz -HSync +VSync
        h: width  1600 start 1704 end 1872 total 2144 skew    0 clock  70.55KHz
        v: height  900 start  903 end  908 total  942           clock  74.89Hz
  1368x768 (0x61) 109.250MHz -HSync +VSync
        h: width  1368 start 1448 end 1592 total 1816 skew    0 clock  60.16KHz
        v: height  768 start  771 end  781 total  805           clock  74.73Hz
  1280x720 (0x62) 95.750MHz -HSync +VSync
        h: width  1280 start 1360 end 1488 total 1696 skew    0 clock  56.46KHz
        v: height  720 start  723 end  728 total  755           clock  74.78Hz
  1024x576 (0x63) 60.000MHz -HSync +VSync
        h: width  1024 start 1072 end 1176 total 1328 skew    0 clock  45.18KHz
        v: height  576 start  579 end  584 total  604           clock  74.80Hz
  864x486 (0x64) 42.000MHz -HSync +VSync
        h: width   864 start  896 end  984 total 1104 skew    0 clock  38.04KHz
        v: height  486 start  489 end  494 total  511           clock  74.45Hz
  720x400 (0x65) 28.000MHz -HSync +VSync
        h: width   720 start  744 end  808 total  896 skew    0 clock  31.25KHz
        v: height  400 start  403 end  413 total  421           clock  74.23Hz
  640x350 (0x66) 22.000MHz -HSync +VSync
        h: width   640 start  656 end  720 total  800 skew    0 clock  27.50KHz
        v: height  350 start  353 end  363 total  369           clock  74.53Hz 
 $ glxinfo -B    # mesa-utils
name of display: :1
display: :1  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon RX 6700 XT (radeonsi, navi22, LLVM 21.1.3, DRM 3.64, 6.17.4-arch2-1) (0x73df)
    Version: 25.2.5
    Accelerated: yes
    Video memory: 12288MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 10595 MB, largest block: 10595 MB
    VBO free aux. memory - total: 15371 MB, largest block: 15371 MB
    Texture free memory - total: 10595 MB, largest block: 10595 MB
    Texture free aux. memory - total: 15371 MB, largest block: 15371 MB
    Renderbuffer free memory - total: 10595 MB, largest block: 10595 MB
    Renderbuffer free aux. memory - total: 15371 MB, largest block: 15371 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 12288 MB
    Total available memory: 27883 MB
    Currently available dedicated video memory: 10595 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 6700 XT (radeonsi, navi22, LLVM 21.1.3, DRM 3.64, 6.17.4-arch2-1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 25.2.5-arch1.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 25.2.5-arch1.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 25.2.5-arch1.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 
 kscreen-doctor -o
Output: 1 DP-1 92c56da8-1a0d-4630-a2ce-9c4851e9cb24
        enabled
        connected
        priority 1
        DisplayPort
        replication source:0
        Modes:  1:2560x1440@59.95!  2:2560x1440@165.08*  3:2560x1440@143.97  4:2560x1440@120.00  5:1920x1200@59.95  6:1920x1080@165.00  7:1920x1080@143.98  8:1920x1080@120.00  9:1920x1080@119.88  10:1920x1080@119.98  11:1920x1080@60.00  12:1920x1080@60.00  13:1920x1080@59.94  14:1920x1080@50.00  15:1600x1200@59.95  16:1680x1050@59.95  17:1280x1024@75.03  18:1280x1024@60.02  19:1440x900@59.89  20:1280x960@60.00  21:1280x800@59.81  22:1152x864@75.00  23:1280x720@60.00  24:1280x720@60.00  25:1280x720@59.94  26:1280x720@50.00  27:1024x768@75.03  28:1024x768@60.00  29:800x600@75.00  30:800x600@60.32  31:720x576@50.00  32:720x576@50.00  33:720x480@60.00  34:720x480@60.00  35:720x480@59.94  36:720x480@59.94  37:640x480@75.00  38:640x480@60.00  39:640x480@59.94  40:720x400@70.08  41:1600x1200@164.97  42:1280x1024@164.93  43:1024x768@164.99  44:1920x1200@164.94  45:1280x800@164.81  46:1600x900@59.95  47:1600x900@164.88  48:1368x768@59.88  49:1368x768@164.98  50:1280x720@164.89 
        Geometry: 1440,1120 2560x1440
        Scale: 1
        Rotation: 1
        Overscan: 0
        Vrr: Automatic
        RgbRange: Full
        HDR: enabled
                SDR brightness: 260 nits
                SDR gamut wideness: 100%
                Peak brightness: 397 nits, overridden with: 397 nits
                Max average brightness: 427 nits
                Min brightness: 0.2133 nits
        Wide Color Gamut: enabled
        ICC profile: none
        Color profile source: sRGB
        Color power preference: prefer accuracy
        Brightness control: supported, set to 75% and dimming to 100%
        DDC/CI: allowed
        Color resolution: automatic (16), range: [8; 16] bits per color
        Allow EDR: unsupported
        Sharpness control: unsupported
Output: 2 DP-2 c2c1d523-7126-4af3-8a7a-77d8e1f4bf52
        enabled
        connected
        priority 2
        DisplayPort
        replication source:0
        Modes:  51:2560x1440@59.95!  52:2560x1440@74.97*  53:1920x1200@59.95  54:2048x1080@60.00  55:1920x1080@60.00  56:1920x1080@60.00  57:1920x1080@59.94  58:1920x1080@50.00  59:1600x1200@59.95  60:1680x1050@59.95  61:1600x900@60.00  62:1280x1024@75.03  63:1280x1024@60.02  64:1440x900@59.95  65:1280x800@59.95  66:1152x864@75.00  67:1280x720@60.00  68:1280x720@59.94  69:1280x720@50.00  70:1024x768@75.03  71:1024x768@60.00  72:800x600@75.00  73:800x600@60.32  74:720x576@50.00  75:720x576@50.00  76:720x480@60.00  77:720x480@60.00  78:720x480@59.94  79:720x480@59.94  80:640x480@75.00  81:640x480@60.00  82:640x480@59.94  83:640x480@59.94  84:720x400@70.08  85:1600x1200@74.88  86:1920x1200@74.93  87:1280x800@74.76  88:1920x1080@74.91  89:1600x900@74.89  90:1368x768@59.88  91:1368x768@74.73  92:1280x720@74.78 
        Geometry: 0,0 1440x2560
        Scale: 1
        Rotation: 8
        Overscan: 0
        Vrr: Automatic
        RgbRange: Full
        HDR: incapable
        Wide Color Gamut: incapable
        ICC profile: /home/stefanos/colord/AdobeRGB1998.icc
        Color profile source: ICC
        Color power preference: prefer accuracy
        Brightness control: supported, set to 50% and dimming to 100%
        DDC/CI: allowed
        Color resolution: automatic (16), range: [8; 16] bits per color
        Allow EDR: unsupported
        Sharpness control: unsupported 
 Operating System: Arch Linux 
KDE Plasma Version: 6.5.0
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.4-arch2-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7700 8-Core Processor
Memory: 34 GB of RAM (32,7 GB usable)
Graphics Processor 1: AMD Radeon RX 6700 XT
Graphics Processor 2: AMD Radeon Graphics
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B650 AORUS ELITE AX V2
System Version: Default string-WCP 
 pacman -Qi steam
Name            : steam
Version         : 1.0.0.85-1
Description     : Valve's digital software delivery system
Architecture    : x86_64
URL             : https://steampowered.com/
Licenses        : LicenseRef-steam-subscriber-agreement
Groups          : None
Provides        : None
Depends On      : bash  coreutils  curl  dbus  desktop-file-utils  diffutils  freetype2  gcc-libs  gdk-pixbuf2  glibc
                  hicolor-icon-theme  libxcrypt  libxcrypt-compat  libxkbcommon-x11  lsb-release  lsof  nss  python  ttf-font
                  usbutils  vulkan-driver  vulkan-icd-loader  xdg-user-dirs  xorg-xrandr  xz  zenity  lib32-alsa-plugins
                  lib32-fontconfig  lib32-gcc-libs  lib32-glibc  lib32-libgl  lib32-libgpg-error  lib32-libnm  lib32-libva
                  lib32-libx11  lib32-libxcrypt  lib32-libxcrypt-compat  lib32-libxinerama  lib32-libxss  lib32-nss  lib32-pipewire
                  lib32-systemd  lib32-vulkan-driver  lib32-vulkan-icd-loader
Optional Deps   : polkit: to setup SteamVR without root access [installed]
                  steam-native-runtime: steam native runtime support
                  xdg-desktop-portal-impl: file & folder picker [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 19,46 MiB 

Offline

#2 2025-10-23 15:18:20

ankabo
Member
Registered: 2025-07-14
Posts: 16

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

Hi,
I had also some issues, but not exactly like yours.
I opened the system settings and opened the "windows rules" (I hope it is called that way in english). There I made a new entry, like "steam" or the exact game name. I started the game, switched to the "windows rules" and there is a button bottom right to scan the actual opened screens. I click it, click on the "game screen" and than you can see all variables for the actual one.
For me it was a problem, that the game was never in full screen. So I opened the value for full screen and said, that this is forced to be all the time.
I hope you can find something that helps in there for you.

Offline

#3 2025-10-25 09:59:46

Stef99
Member
Registered: 2024-09-06
Posts: 48

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

Tried a few things on window rules and nothing so far. Will try a reinstall, maybe test a few things on both flatpak and pacman steam and see what might be the cause.

Offline

#4 2025-10-25 16:08:10

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,527

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

Games on steam without PROTON_ENABLE_WAYLAND=1 (Im using proton-GE) have a issue where if i click on the second monitor, the game window will minimize all the time

Does it actually appear as minimized in the taskbar or just disappear?

"click on the second monitor" is likely equivalent to the window losing the focus, thus  the fullscreen layer - this might hinge on the (multiscreen) focus policy?

Online

#5 2025-10-26 09:11:15

Stef99
Member
Registered: 2024-09-06
Posts: 48

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

It appears as minimized in the taskbar when I select anything on the second monitor as in losing the focus. This doesn't happen on a game launched as a native wayland application so I don't know the reason as to why.
Unrelated to the topic but maybe give a hint as to whats happening is any game launched on vulkan it flickers like crazy but stops when selecting the second monitor or if I uncheck on the game's icon on the taskbar the fullscreen. All games also by default launch on border less window instead of fullscreen but I don't know if thats something normal.

Offline

#6 2025-10-26 16:14:34

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,527

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

Are other xwayland clients affected, eg. xterm or "MOZ_ENABLE_WAYLAND=0 firefox" (make sure to kill all firefox instances first) - notably does the latter behave differently depending on the fullscreen state?

Online

#7 2025-10-26 18:06:37

Stef99
Member
Registered: 2024-09-06
Posts: 48

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

Heres a video demonstrating the problems. https://streamable.com/nz7kvm (WARNING: flickering is included, anyone with epilepsy be aware)

What happens on proton experimental and Proton-GE running Xwayland is that when you click on the second monitor as shown, it minimizes. On Xwayland the cursor is locked as it should be with it being only unlocked when the game is paused. Games on Vulkan don't flicker at all and work as they should with only a quick black screen when selecting the second monitor but its fast enough to not be a huge issue.
Now on Wayland (Proton-GE) the minimize problem doesn't exist but the cursor is not locked on to the main monitor and if moved to the side of the second monitor (left for my case) it will escape. Some games its locked and works for the most part but others (most games) it doesn't. For some games setting them on "Border-less Window" solves the problem. Now Vulkan on Wayland flickers a lot but after searching found this issue is caused by something KDE related but im not sure.

Last edited by Stef99 (2025-10-26 18:12:06)

Offline

#8 2025-10-26 20:38:19

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,527

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

The main question would be whether the behavior is specific to
* steam
* xwayland
* fullscreen xwayland
clients, see my previous comment.

But from your video: do the outputs overlap?

Online

#9 2025-10-26 22:29:38

Stef99
Member
Registered: 2024-09-06
Posts: 48

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

The issue when using wayland is happening on steam and bottles, have tried playing on heroic games using geproton and wayland and it didn't happen there but it was just one game.

Xwayland Issues are: clicking or selecting anything on the second monitor minimize the window.

Wayland: 1)Cursor isn't frozen on the main monitor and can escape to the second one. 2) Games running on Vulkan flicker  both of these on some games can be fixed if set on border-less window mode. The issues appear on fullscreen only.
For more clarity on the vkbasalt hud on to the right on the bottom shows if its running wayland or Xwayland. Sorry if it doesn't appear clear due to low quality.

But from your video: do the outputs overlap?

You mean the screen appearing like that on to the main monitor? No I just set it that way in OBS to show the POV of the second monitor.

Offline

#10 Yesterday 08:40:19

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,527

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

The issues appear on fullscreen only.

Are random other xwayland fullscreen windows affected? Doesn't have to be a specific browser, any X11/xwayland fullscreen window will do - the point is to determine whether that's a steam or a kwin bug.

Online

#11 Yesterday 09:03:08

Stef99
Member
Registered: 2024-09-06
Posts: 48

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

Tried setting both Xwayland and Wayland native apps like firefox, spotify and discord full screen and I can't replicate the issue as they are working fine. Seems like a steam exclusive issue.

Offline

#12 Yesterday 14:10:06

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,527

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

https://steamcommunity.com/app/1162750/ … 828998978/ ?

SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0

Online

#13 Yesterday 14:37:09

Stef99
Member
Registered: 2024-09-06
Posts: 48

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 didn't fix the issue but setting the game to borderless did fix it and no longer minimizes. This was on Xwayland. Honestly I don't know why it has such a high fixation for borderless, I think I have exhausted the things to test here other than trying this on a complete new arch plasma set up.

Offline

#14 Yesterday 15:01:22

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,527

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

How and where did you export that?
The environment variable looks too obvious to not be relevant…

Online

#15 Yesterday 17:16:31

Stef99
Member
Registered: 2024-09-06
Posts: 48

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

From the link provided? I set it on the launch options for the game as SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 %command%. Like I said im just throwing whatever sticks and might fix the issues, at this point gaming via steam has become an annoyance than anything.

Last edited by Stef99 (Yesterday 17:16:41)

Offline

#16 Yesterday 17:50:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,828

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

FWIW something whose entire purpose is to avoid such focus change gotchas is gamescope, maybe consider trying that? That said one time I've seen that happen is when "other" windows cross over the monitor border, e.g. a browser window or so that's accidentally not maximized to the proper screen border but "slightly" larger and "bleeds" into the fullscreen monitor where a game is running, make sure these conditions aren't the case. also "non standard" scaling factors between the monitors potentially? Also since xrandr on xwayland might not have the full picture, what output do you get from

kscreen-doctor -o

Offline

#17 Yesterday 19:10:20

Stef99
Member
Registered: 2024-09-06
Posts: 48

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

I have tried gamescope but gamescope basically disables wayland and uses Xwayland by default, haven't found an option that forces it to use wayland natively.

 $ kscreen-doctor -o
Output: 1 DP-1 fa5d252b-2d34-41c2-aece-20f59c765bb2
        enabled
        connected
        priority 1
        DisplayPort
        replication source:0
        Modes:  1:2560x1440@59.95!  2:2560x1440@165.08*  3:2560x1440@143.97  4:2560x1440@120.00  5:1920x1200@59.95  6:1920x1080@165.00  7:1920x1080@143.98  8:1920x1080@120.00  9:1920x1080@119.88  10:1920x1080@119.98  11:1920x1080@60.00  12:1920x1080@60.00  13:1920x1080@59.94  14:1920x1080@50.00  15:1600x1200@59.95  16:1680x1050@59.95  17:1280x1024@75.03  18:1280x1024@60.02  19:1440x900@59.89  20:1280x960@60.00  21:1280x800@59.81  22:1152x864@75.00  23:1280x720@60.00  24:1280x720@60.00  25:1280x720@59.94  26:1280x720@50.00  27:1024x768@75.03  28:1024x768@60.00  29:800x600@75.00  30:800x600@60.32  31:720x576@50.00  32:720x576@50.00  33:720x480@60.00  34:720x480@60.00  35:720x480@59.94  36:720x480@59.94  37:640x480@75.00  38:640x480@60.00  39:640x480@59.94  40:720x400@70.08  41:1600x1200@164.97  42:1280x1024@164.93  43:1024x768@164.99  44:1920x1200@164.94  45:1280x800@164.81  46:1600x900@59.95  47:1600x900@164.88  48:1368x768@59.88  49:1368x768@164.98  50:1280x720@164.89 
        Geometry: 1440,1120 2560x1440
        Scale: 1
        Rotation: 1
        Overscan: 0
        Vrr: Automatic
        RgbRange: Full
        HDR: enabled
                SDR brightness: 220 nits
                SDR gamut wideness: 100%
                Peak brightness: 400 nits, overridden with: 400 nits
                Max average brightness: 427 nits
                Min brightness: 0.2133 nits
        Wide Color Gamut: enabled
        ICC profile: /home/stefanos/Documents/color/sRGB.icc
        Color profile source: ICC
        Color power preference: prefer accuracy
        Brightness control: supported, set to 100% and dimming to 100%
        DDC/CI: allowed
        Color resolution: 16 bits per color, range: [8; 16] bits per color
        Allow EDR: unsupported
        Sharpness control: unsupported
Output: 2 DP-2 c2c1d523-7126-4af3-8a7a-77d8e1f4bf52
        enabled
        connected
        priority 2
        DisplayPort
        replication source:0
        Modes:  51:2560x1440@59.95!  52:2560x1440@74.97*  53:1920x1200@59.95  54:2048x1080@60.00  55:1920x1080@60.00  56:1920x1080@60.00  57:1920x1080@59.94  58:1920x1080@50.00  59:1600x1200@59.95  60:1680x1050@59.95  61:1600x900@60.00  62:1280x1024@75.03  63:1280x1024@60.02  64:1440x900@59.95  65:1280x800@59.95  66:1152x864@75.00  67:1280x720@60.00  68:1280x720@59.94  69:1280x720@50.00  70:1024x768@75.03  71:1024x768@60.00  72:800x600@75.00  73:800x600@60.32  74:720x576@50.00  75:720x576@50.00  76:720x480@60.00  77:720x480@60.00  78:720x480@59.94  79:720x480@59.94  80:640x480@75.00  81:640x480@60.00  82:640x480@59.94  83:640x480@59.94  84:720x400@70.08  85:1600x1200@74.88  86:1920x1200@74.93  87:1280x800@74.76  88:1920x1080@74.91  89:1600x900@74.89  90:1368x768@59.88  91:1368x768@74.73  92:1280x720@74.78 
        Geometry: 0,0 1440x2560
        Scale: 1
        Rotation: 8
        Overscan: 0
        Vrr: Automatic
        RgbRange: Full
        HDR: incapable
        Wide Color Gamut: incapable
        ICC profile: /home/stefanos/colord/AdobeRGB1998.icc
        Color profile source: ICC
        Color power preference: prefer accuracy
        Brightness control: supported, set to 50% and dimming to 100%
        DDC/CI: allowed
        Color resolution: automatic (16), range: [8; 16] bits per color
        Allow EDR: unsupported
        Sharpness control: unsupported 

Offline

#18 Yesterday 19:54:21

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,527

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

Try

export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
steam

I have tried gamescope but gamescope basically disables wayland and uses Xwayland by default

But isn't the focuslossminimization an xwayland-exclusive issue itfp while native wayland (for proton, afaiu steam itself will run on X11/xwayland anyway?) in the first place?

Do the kwin rules allow you to prevent clients from self-minimization?

Online

#19 Yesterday 23:04:44

Stef99
Member
Registered: 2024-09-06
Posts: 48

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

 export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
 steam 

Didn't work. Gamescope does work in restricting the mouse but I found a new method granted you sacrifice any mouse movement outside the main monitor (just as it happens with gamescope) unless you do alt+tab. Via protontricks selecting winecfg, input and selecting "automatically capture the mouse in full-screen windows" will prevent both any minimizing and the cursor escaping. Works the same in wayland but I would rather have the ability to move the mouse when the game is paused.

I also tried to prevent any minimizing via window rules and for some reason the game goes completely black as shown in this video. https://streamable.com/x763fj

Last edited by Stef99 (Today 07:37:16)

Offline

#20 Today 15:33:19

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,527

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

for some reason the game goes completely black

The client still "minimizes" internally, kwin just keeps the window up.

Running google on this insanity, try to "export SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0" (nb. the extra "HINT") though strings only finds SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS and only in SDL3… hmm

Online

#21 Today 19:30:37

Stef99
Member
Registered: 2024-09-06
Posts: 48

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

I found out that the borderless window setting also fixed the minimize problem for Xwayland other than the cursor problem for Native wayland. Only found one game where this doesn't happen with wayland which the cursor still escapes but I guess I can make do with just that game not working, maybe its a kwin bug after all that Ill just have to wait for it to be fixed.
A minute ago I was testing with half life 2 and found when disabling "wait for vsync" it would change the present mode to "IMMEDIATE" from "FIFO" it would fix the cursor problem immediately but other games I tested didn't have this issue between vsync.
I guess now the only issue I have is with vulkan flickering on wayland fullscreen (borderless unlike the other games exposes the taskbar which is annoying, im looking for a workaround for this) but I think thats a GE-PROTON issue than plasma.

Offline

#22 Today 19:52:25

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,527

Re: Weird mouse cursor behavior with dual monitor setup in KDE plasma

Yes, you're using a pseudo-fullscreen mode where it's likely to behave more like a normal window (as it is)
Does switching from VK_PRESENT_MODE_FIFO_KHR to VK_PRESENT_MODE_IMMEDIATE_KHR not impact the flicker at all (I'd see that much rather than impact on the mouse capture behavior…)

Online

Board footer

Powered by FluxBB