Centre mouse on active window after alt tabbing

Hi all,
I recently switched from garuda cinnamon to dragonized which I am loving so far.
The one thing I am missing is that the cursor no longer jumps to the centre of the selected window after alt tabbing, as far as I understand this is difficult to do within wayland so I’m just wondering if anyone has a trick.
Thanks :slight_smile:

Hi there, welcome to the forum.

Please post your garuda-inxi as requested in the topic template.

I’m not sure if I understand you correctly. Do you want the cursor to stay where it is when you switch between different windows using Alt + TAB, or do you want it to be centered? In KDE Plasma, the cursor stays where it is and does not jump to the center of the selected window. I’m not a Cinnamon expert, but in a quick test with Garuda Cinnamon in a VM, the cursor is not centered after switching with Alt + TAB either.

3 Likes

inxi:

System:
  Kernel: 6.17.2-arch1-1-znver2 arch: x86_64 bits: 64 compiler: gcc v: 15.2.1 clocksource: tsc
    avail: hpet,acpi_pm parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-znver2
    root=UUID=4693b9fe-3de4-49c2-af54-4fd3230c5ccf rw rootflags=subvol=@ quiet loglevel=3
  Desktop: KDE Plasma v: 6.4.5 tk: Qt v: N/A info: frameworks v: 6.19.0 wm: kwin_wayland vt: 1
    dm: SDDM Distro: Garuda base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: TUF GAMING X570-PLUS v: Rev X.0x serial: <superuser required>
    part-nu: SKU uuid: <superuser required> UEFI: American Megatrends v: 5003 date: 10/07/2023
CPU:
  Info: model: AMD Ryzen 9 3900X bits: 64 type: MT MCP arch: Zen 2 gen: 2 level: v3 note: check
    built: 2020-22 process: TSMC n7 (7nm) family: 0x17 (23) model-id: 0x71 (113) stepping: 0
    microcode: 0x8701034
  Topology: cpus: 1x dies: 1 clusters: 1 cores: 12 threads: 24 tpc: 2 smt: enabled cache:
    L1: 768 KiB desc: d-12x32 KiB; i-12x32 KiB L2: 6 MiB desc: 12x512 KiB L3: 64 MiB desc: 4x16 MiB
  Speed (MHz): avg: 4000 min/max: 585/5109 boost: enabled scaling: driver: amd-pstate-epp
    governor: performance,powersave cores: 1: 4000 2: 4000 3: 4000 4: 4000 5: 4000 6: 4000 7: 4000
    8: 4000 9: 4000 10: 4000 11: 4000 12: 4000 13: 4000 14: 4000 15: 4000 16: 4000 17: 4000
    18: 4000 19: 4000 20: 4000 21: 4000 22: 4000 23: 4000 24: 4000 bogomips: 191997
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: NVIDIA GM204 [GeForce GTX 970] vendor: eVga.com. driver: nvidia v: 580.95.05
    alternate: nouveau,nvidia_drm non-free: 550-580.xx+ status: current (as of 2025-08;
    EOL~2026-12-xx) arch: Maxwell code: GMxxx process: TSMC 28nm built: 2014-2019 pcie: gen: 1
    speed: 2.5 GT/s lanes: 4 link-max: gen: 3 speed: 8 GT/s lanes: 16 ports: active: DVI-I-1
    empty: DP-1,DVI-D-1,HDMI-A-1 bus-ID: 05:00.0 chip-ID: 10de:13c2 class-ID: 0300
  Device-2: NVIDIA GA104 [GeForce RTX 3070] vendor: Gigabyte driver: nvidia v: 580.95.05
    alternate: nouveau,nvidia_drm non-free: 550-580.xx+ status: current (as of 2025-08;
    EOL~2026-12-xx) arch: Ampere code: GAxxx process: TSMC n7 (7nm) built: 2020-2023 pcie: gen: 4
    speed: 16 GT/s lanes: 16 ports: active: DP-2,DP-3,HDMI-A-3 empty: HDMI-A-2 bus-ID: 0a:00.0
    chip-ID: 10de:2484 class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.18 with: Xwayland v: 24.1.8 compositor: kwin_wayland
    driver: X: loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa alternate: nv
    gpu: nvidia,nvidia-nvswitch d-rect: 8080x3570 display-ID: 0
  Monitor-1: DP-2 pos: 2-2 model: LG (GoldStar) M2280D serial: <filter> built: 2010 res:
    mode: 1680x1050 hz: 60 scale: 100% (1) dpi: 102 gamma: 1.2 size: 477x268mm (18.78x10.55")
    diag: 547mm (21.5") ratio: 16:9 modes: max: 1920x1080 min: 640x480
  Monitor-2: DP-3 pos: 3-3 model: Dell AW2725DF serial: <filter> built: 2023 res: mode: 2560x1440
    hz: 360 scale: 100% (1) dpi: 110 gamma: 1.2 size: 590x334mm (23.23x13.15") diag: 678mm (26.7")
    ratio: 16:9 modes: max: 2560x1440 min: 640x480
  Monitor-3: DVI-I-1 pos: 3-1 model: Asus VG248 serial: <filter> built: 2015 res: mode: 1920x1080
    hz: 144 scale: 100% (1) dpi: 92 gamma: 1.2 size: 531x299mm (20.91x11.77") diag: 609mm (24")
    ratio: 16:9 modes: max: 1920x1080 min: 640x480
  Monitor-4: HDMI-A-3 pos: 1-4 model: BenQ RL2455 serial: <filter> built: 2014 res:
    mode: 1920x1080 hz: 60 scale: 100% (1) dpi: 92 gamma: 1.2 size: 531x298mm (20.91x11.73")
    diag: 609mm (24") ratio: 16:9 modes: max: 1920x1080 min: 640x480
  API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 1 drv: nvidia
    device: 4 drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia x11:
    drv: nvidia inactive: device-2,device-3
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 580.95.05 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce RTX 3070/PCIe/SSE2 memory: 7.81 GiB display-ID: :1.0
  API: Vulkan v: 1.4.328 layers: 15 device: 0 type: discrete-gpu name: NVIDIA GeForce RTX 3070
    driver: nvidia v: 580.95.05 device-ID: 10de:2484 surfaces: N/A device: 1 type: discrete-gpu
    name: NVIDIA GeForce GTX 970 driver: nvidia v: 580.95.05 device-ID: 10de:13c2 surfaces: N/A
    device: 2 type: cpu name: llvmpipe (LLVM 20.1.8 256 bits) driver: mesa llvmpipe
    v: 25.2.4-arch1.2 (LLVM 20.1.8) device-ID: 10005:0000 surfaces: N/A
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo de: kscreen-console,kscreen-doctor
    gpu: nvidia-settings,nvidia-smi wl: wayland-info x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: NVIDIA GM204 High Definition Audio vendor: eVga.com. driver: snd_hda_intel v: kernel
    pcie: gen: 3 speed: 8 GT/s lanes: 4 link-max: lanes: 16 bus-ID: 05:00.1 chip-ID: 10de:0fbb
    class-ID: 0403
  Device-2: NVIDIA GA104 High Definition Audio vendor: Gigabyte driver: snd_hda_intel v: kernel
    pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0a:00.1 chip-ID: 10de:228b class-ID: 0403
  Device-3: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0c:00.4
    chip-ID: 1022:1487 class-ID: 0403
  Device-4: SteelSeries ApS Arctis Nova Pro Wireless driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 5-3:3 chip-ID: 1038:12e0
    class-ID: 0300
  API: ALSA v: k6.17.2-arch1-1-znver2 status: kernel-api tools: N/A
  Server-1: PipeWire v: 1.4.9 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 06:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Info: services: NetworkManager,systemd-timesyncd
Drives:
  Local Storage: total: 3.98 TiB used: 2.72 TiB (68.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Sabrent model: N/A size: 238.47 GiB block-size:
    physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: RKT343.4 temp: 28.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:3 vendor: Crucial model: CT1000P3SSD8 size: 931.51 GiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: P9CR30A temp: 30.9 C scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: SanDisk model: SDSSDHII120G size: 111.79 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD serial: <filter> fw-rev: 00RL
    scheme: GPT
  ID-4: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DM008-2FR102 size: 1.82 TiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 7200 serial: <filter>
    fw-rev: 0001 scheme: GPT
  ID-5: /dev/sdc maj-min: 8:32 vendor: Toshiba model: HDWD110 size: 931.51 GiB block-size:
    physical: 4096 B logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 7200 serial: <filter> fw-rev: A8R0
Partition:
  ID-1: / raw-size: 238.18 GiB size: 238.18 GiB (100.00%) used: 108.12 GiB (45.4%) fs: btrfs
    dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 636 KiB (0.2%) fs: vfat
    dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 238.18 GiB size: 238.18 GiB (100.00%) used: 108.12 GiB (45.4%) fs: btrfs
    dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 238.18 GiB size: 238.18 GiB (100.00%) used: 108.12 GiB (45.4%)
    fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 238.18 GiB size: 238.18 GiB (100.00%) used: 108.12 GiB (45.4%)
    fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 31.24 GiB used: 8.1 MiB (0.0%) priority: 100 comp: zstd
    avail: lzo-rle,lzo,lz4,lz4hc,deflate,842 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 41.1 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB available: 31.24 GiB used: 7.97 GiB (25.5%)
  Processes: 630 Power: uptime: 3m states: freeze,mem,disk suspend: deep avail: s2idle wakeups: 0
    hibernate: platform avail: shutdown, reboot, suspend, test_resume image: 12.4 GiB
    services: org_kde_powerdevil, power-profiles-daemon, upowerd Init: systemd v: 258
    default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 1585 libs: 393 tools: octopi,paru Compilers: clang: 20.1.8
    gcc: 15.2.1 Client: Unknown Client: electron inxi: 3.3.39
Garuda (2.11.1-1):
  System install date:     2025-10-12
  Garuda release:          251002
  Last full system update: 2025-10-15
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut nvidia-utils nvidia-dkms garuda-hardware-profile-nvidia-closed garuda-hardware-profile-standard
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            
--- System Health Check Report ---
23/24 checks run in 0.96 seconds ⌛
Powered by garuda-health 🦅

✅ System health check passed. No issues found.

Thanks for your reply, I mean the latter. I believe it was not the default behaviour in Cinnamon, but it was available as a toggleable option somewhere in the window switching settings

Ah, I found it in Cinnamon. But I don’t know of any corresponding function or trick in KDE Plasma. However, I think it could be possible to solve this with a script.

Ah that’s good to hear! Any chance you can point me towards some resources I could use to write a script that can do this? I can code, I just have no idea where to start with KDE/Wayland scripting

Search the internet for KWin scripting. :wink:

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.