KDE/x11/Dual Displays - Set New Windows To Open On Screen Where The Cursor Is?

Hi,

Bit of an odd one here:
I recently started using dual displays.
Running Manjaro KDE with x11 on an AMD APU.

My second display is a TV.
When I switch input on the TV to watch TV,
I have a problem where newly opened windows are placed on the TV.
(would like the windows to open on the main display)

Really looking for an option to set windows to open on screen where cursor is.
Any ideas about the above?
Thanks!

Jesse

1 Like

I’m not :100:% sure if it’s available on X11 but this seems pretty close to what you’re after.

System Settings → Window Management → Window Behaviour → Advanced → Window Placement → Under Mouse


I have a couple of other suggestions for window management.

There are keyboard shortcuts to move the window with focus between monitors, etc. Search for “move window” after navigating to :down_arrow:

System Settings → Keyboard → Shortcuts → Window Management


You can configure a “Screen Edge” to show all windows, so you can change focus to windows on the other screen and then move them with the above shortcuts (without having to switch inputs).

System Settings → Display & Monitor → Screen Edges → Click one of the buttons around the image of a monitor.

2 Likes

It’s also worth checking which monitor is “primary” when both displays are active. My TV (second monitor) is still seen as active even if it’s on a different input.

1 Like

Please post more information about system

inxi -zv8
3 Likes

I suggest setting window management to click to activate your chosen window. It will still be the active window if you move your mouse to the other screen (and have not clicked anything yet). :slight_smile: A shortcut key then run as a screen command will operate on that window which is still active, resizing that window, moving it, even sending it to the next screen.
ADVANCED:

It possible to combine dbus commands into clickable screen clicks to do this. I published an article on Linux Journal on how to do this. It now needs updated with Plasma 6, btw.

inxi -zv8
System:
Kernel: 6.12.48-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
clocksource: tsc avail: hpet,acpi_pm
parameters: BOOT_IMAGE=/boot/vmlinuz-6.12-x86_64
root=UUID=d49c7a29-82dd-4a37-93f8-c1ea1df72ef7 rw quiet
cryptdevice=UUID=9c0390c7-ef75-4609-9f94-fd8d1043c88d:luks-9c0390c7-ef75-4609-9f94-fd8d1043c88d
root=/dev/mapper/luks-9c0390c7-ef75-4609-9f94-fd8d1043c88d splash
udev.log_priority=3
Desktop: KDE Plasma v: 6.3.6 tk: Qt v: N/A info: frameworks v: 6.18.0
wm: kwin_x11 vt: 2 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
Type: Mini-pc Mobo: AZW model: SER8 v: V10 serial: 
part-nu: 75 uuid:  UEFI: American Megatrends LLC.
v: HPT.8xxx.SER8.V029.P8C0M0C15.13.Link date: 02/21/2025
Battery:
Message: No system battery data found. Is one present?
Memory:
System RAM: total: 32 GiB available: 23.25 GiB used: 13.34 GiB (57.4%)
Message: For most reliable report, use superuser + dmidecode.
Array-1: capacity: 64 GiB slots: 2 modules: 2 EC: None
max-module-size: 32 GiB note: est.
Device-1: Channel-A DIMM 0 type: DDR5 detail: synchronous unbuffered
(unregistered) size: 16 GiB speed: 5600 MT/s volts: note: check curr: 1
min: 1 max: 1 width (bits): data: 64 total: 64 manufacturer: Crucial
part-no: CT16G56C46S5.M8G1 serial: 
Device-2: Channel-B DIMM 0 type: DDR5 detail: synchronous unbuffered
(unregistered) size: 16 GiB speed: 5600 MT/s volts: note: check curr: 1
min: 1 max: 1 width (bits): data: 64 total: 64 manufacturer: Crucial
part-no: CT16G56C46S5.M8G1 serial: 
PCI Slots:
Permissions: Unable to run dmidecode. Root privileges required.
CPU:
Info: model: AMD Ryzen 7 8845HS w/ Radeon 780M Graphics bits: 64
type: MT MCP arch: Zen 4 gen: 4 level: v4 note: check built: 2022+
process: TSMC n5 (5nm) family: 0x19 (25) model-id: 0x75 (117) stepping: 2
microcode: 0xA705208
Topology: cpus: 1x dies: 1 clusters: 1 cores: 8 threads: 16 tpc: 2
smt: enabled cache: L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 8 MiB
desc: 8x1024 KiB L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 1330 min/max: 400/5137 boost: enabled scaling:
driver: amd-pstate-epp governor: powersave cores: 1: 1330 2: 1330 3: 1330
4: 1330 5: 1330 6: 1330 7: 1330 8: 1330 9: 1330 10: 1330 11: 1330 12: 1330
13: 1330 14: 1330 15: 1330 16: 1330 bogomips: 121430
Flags: 3dnowprefetch abm adx aes amd_lbr_v2 aperfmperf apic arat avx avx2
avx512_bf16 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vpopcntdq
avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl bmi1
bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
constant_tsc cpb cppc cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists erms extapic
extd_apicid f16c flush_l1d flushbyasid fma fpu fsgsbase fsrm fxsr
fxsr_opt gfni ht hw_pstate ibpb ibrs ibrs_enhanced ibs invpcid irperf
lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr
mwaitx nonstop_tsc nopl npt nrip_save nx ospke osvw overflow_recov pae
pat pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
perfmon_v2 pfthreshold pge pku pni popcnt pse pse36 rapl rdpid rdpru
rdrand rdseed rdt_a rdtscp rep_good sep sha_ni skinit smap smca smep ssbd
sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce
topoext tsc tsc_scale umip user_shstk v_spec_ctrl vaes vgif vmcb_clean
vme vmmcall vnmi vpclmulqdq wbnoinvd wdt x2apic x2avic xgetbv1 xsave
xsavec xsaveerptr xsaveopt xsaves xtopology
Vulnerabilities:
Type: gather_data_sampling status: Not affected
Type: indirect_target_selection status: Not affected
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: reg_file_data_sampling status: Not affected
Type: retbleed status: Not affected
Type: spec_rstack_overflow mitigation: Safe RET
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB:
conditional; STIBP: always-on; PBRSB-eIBRS: Not affected; BHI: Not
affected
Type: srbds status: Not affected
Type: tsa mitigation: Clear CPU buffers
Type: tsx_async_abort status: Not affected
Type: vmscape mitigation: IBPB before exit to userspace
Graphics:
Device-1: Advanced Micro Devices [AMD/ATI] HawkPoint1 driver: amdgpu
v: kernel arch: RDNA-3 code: Phoenix process: TSMC n4 (4nm) built: 2023+
pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-1,HDMI-A-1
empty: DP-2, DP-3, DP-4, DP-5, DP-6, Writeback-1 bus-ID: 65:00.0
chip-ID: 1002:1900 class-ID: 0300 temp: 31.0 C
Display: x11 server: X.Org v: 21.1.18 with: Xwayland v: 24.1.8
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1015x285mm (39.96x11.22")
s-diag: 1054mm (41.51")
Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,right
model: LG (GoldStar) Ultra HD serial:  built: 2023 res:
mode: 1920x1080 hz: 60 scale: 100% (1) dpi: 81 gamma: 1.2 chroma: red:
x: 0.655 y: 0.333 green: x: 0.306 y: 0.639 blue: x: 0.149 y: 0.059 white:
x: 0.314 y: 0.329 size: 600x340mm (23.62x13.39") diag: 690mm (27.2")
ratio: 16:9 modes: 3840x2160, 2560x1440, 1920x1200, 1920x1080, 1600x1200,
1680x1050, 1600x900, 1280x1024, 1440x900, 1280x800, 1152x864, 1280x720,
1024x768, 800x600, 720x480, 640x480
Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: left
model: LG (GoldStar) TV SSCR2 serial:  built: 2020 res: 1920x1080
dpi: 61 gamma: 1.2 chroma: red: x: 0.639 y: 0.329 green: x: 0.298 y: 0.600
blue: x: 0.149 y: 0.059 white: x: 0.314 y: 0.329
size: 1600x900mm (62.99x35.43") diag: 1836mm (72.3") ratio: 16:9
modes: 3840x2160, 4096x2160, 2560x1440, 1920x1200, 1920x1080, 1600x1200,
1680x1050, 1280x1024, 1440x900, 1280x800, 1152x864, 1280x720, 1024x768,
800x600, 720x576, 720x480, 640x480, 720x400
EDID-Warnings: 1: parse_edid: unhandled CEA mode 97 2: parse_edid:
unhandled CEA mode 96 3: parse_edid: unhandled CEA mode 102 4: parse_edid:
unhandled CEA mode 101 5: parse_edid: unhandled CEA mode 93 6: parse_edid:
unhandled CEA mode 94 7: parse_edid: unhandled CEA mode 95 8: parse_edid:
unhandled CEA mode 98 9: parse_edid: unhandled CEA mode 99 10: parse_edid:
unhandled CEA mode 100
API: EGL v: 1.5 platforms: device: 1 drv: swrast gbm: drv: kms_swrast
surfaceless: drv: swrast x11: drv: swrast inactive: wayland,device-0
API: OpenGL v: 4.5 vendor: mesa v: 25.2.3-arch1.2 glx-v: 1.4
direct-render: yes renderer: llvmpipe (LLVM 20.1.8 256 bits)
device-ID: ffffffff:ffffffff memory: 22.71 GiB unified: yes
API: Vulkan Message: No Vulkan data available.
Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
de: kscreen-console,kscreen-doctor wl: wayland-info
x11: xdpyinfo, xprop, xrandr
Audio:
Device-1: Advanced Micro Devices [AMD/ATI] Radeon High Definition Audio
[Rembrandt/Strix] driver: snd_hda_intel v: kernel pcie: gen: 4
speed: 16 GT/s lanes: 16 bus-ID: 65:00.1 chip-ID: 1002:1640 class-ID: 0403
Device-2: Advanced Micro Devices [AMD] Audio Coprocessor
driver: snd_pci_ps v: kernel alternate: snd_pci_acp3x, snd_rn_pci_acp3x,
snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x,
snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh,
snd_sof_amd_acp63, snd_sof_amd_acp70 pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 65:00.5 chip-ID: 1022:15e2 class-ID: 0480
Device-3: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 65:00.6 chip-ID: 1022:15e3 class-ID: 0403
API: ALSA v: k6.12.48-1-MANJARO status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: JACK v: 1.9.22 status: off tools: N/A
Server-2: PipeWire v: 1.4.8 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8125 2.5GbE driver: r8169 v: kernel pcie: gen: 2
speed: 5 GT/s lanes: 1 port: f000 bus-ID: 01:00.0 chip-ID: 10ec:8125
class-ID: 0200
IF: enp1s0 state: up speed: 1000 Mbps duplex: full mac: 
IP v4:  type: dynamic noprefixroute scope: global
broadcast: 
IP v6:  type: dynamic noprefixroute scope: global
IP v6:  type: noprefixroute scope: link
Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
speed: 5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:2723 class-ID: 0280
IF: wlp2s0 state: down mac: 
IF-ID-1: wg0-mullvad state: unknown speed: N/A duplex: N/A mac: N/A
IP v4:  scope: global
Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
WAN IP: 
Bluetooth:
Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-5:4 chip-ID: 8087:0029
class-ID: e001
Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
Message: No logical block device data found.
Device-1: luks-9c0390c7-ef75-4609-9f94-fd8d1043c88d maj-min: 254:0
type: LUKS dm: dm-0 size: 931.22 GiB
Components:
p-1: nvme0n1p2 maj-min: 259:2 size: 931.22 GiB
RAID:
Message: No RAID data found.
Drives:
Local Storage: total: 931.51 GiB used: 719.58 GiB (77.2%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT1000P3PSSD8
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 tech: SSD serial:  fw-rev: P9CR411 temp: 27.9 C
scheme: GPT
Message: No optical or floppy data found.
Partition:
ID-1: / raw-size: 931.22 GiB size: 915.53 GiB (98.32%)
used: 719.58 GiB (78.6%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
mapped: luks-9c0390c7-ef75-4609-9f94-fd8d1043c88d label: N/A
uuid: d49c7a29-82dd-4a37-93f8-c1ea1df72ef7
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 536 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A
uuid: A3F0-C0C9
Swap:
Alert: No swap data was found.
Unmounted:
Message: No unmounted partitions found.
USB:
Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 5 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Device-1: 1-3:2 info: China Resource Semico USB Keyboard
type: keyboard,HID driver: hid-generic,usbhid interfaces: 2 rev: 1.1
speed: 1.5 Mb/s (183 KiB/s) lanes: 1 mode: 1.0 power: 500mA
chip-ID: 1a2c:4094 class-ID: 0300
Hub-2: 1-4:3 info: Hitachi ports: 4 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s)
lanes: 1 mode: 2.0 chip-ID: 045b:0209 class-ID: 0900
Hub-3: 1-4.1:5 info: Hitachi ports: 4 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 045b:0209
class-ID: 0900
Hub-4: 1-4.3:6 info: Hitachi ports: 4 rev: 2.1
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 045b:0209
class-ID: 0900
Hub-5: 1-4.3.1:7 info: Hitachi ports: 4 rev: 2.1
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 045b:0209
class-ID: 0900
Device-1: 1-4.3.1.1:9 info: ShenZhen ShanWan Android Gamepad type: HID
driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s)
lanes: 1 mode: 1.1 power: 350mA chip-ID: 2563:0526 class-ID: 0300
Device-2: 1-4.3.1.2:11 info: Logitech Unifying Receiver
type: keyboard,mouse,HID driver: logitech-djreceiver,usbhid interfaces: 3
rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 98mA
chip-ID: 046d:c52b class-ID: 0300
Device-3: 1-4.3.2:8 info: ShenZhen ShanWan ZD-V+ Wired Gaming Controller
type: HID driver: hid-generic,usbhid interfaces: 1 rev: 2.0
speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 500mA
chip-ID: 2563:0575 class-ID: 0300 serial: 
Device-4: 1-4.3.4:10 info: Brother Industries DCP-L2550DW series
type: printer driver: usblp interfaces: 2 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 2mA
chip-ID: 04f9:0424 class-ID: 0701 serial: 
Device-5: 1-5:4 info: Intel AX200 Bluetooth type: bluetooth driver: btusb
interfaces: 2 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1
power: 100mA chip-ID: 8087:0029 class-ID: e001
Hub-6: 2-0:1 info: super-speed hub ports: 2 rev: 3.1
speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
class-ID: 0900
Hub-7: 3-0:1 info: hi-speed hub with single TT ports: 1 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Hub-8: 4-0:1 info: super-speed hub ports: 1 rev: 3.1
speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
class-ID: 0900
Hub-9: 5-0:1 info: hi-speed hub with single TT ports: 1 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Hub-10: 6-0:1 info: super-speed hub ports: 1 rev: 3.1
speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
class-ID: 0900
Hub-11: 7-0:1 info: hi-speed hub with single TT ports: 1 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Device-1: 7-1:2 info: USB Optical Mouse type: mouse
driver: hid-generic,usbhid interfaces: 1 rev: 1.1
speed: 1.5 Mb/s (183 KiB/s) lanes: 1 mode: 1.0 power: 100mA
chip-ID: 30fa:0400 class-ID: 0301
Hub-12: 8-0:1 info: super-speed hub ports: 1 rev: 3.1
speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
class-ID: 0900
Sensors:
System Temperatures: cpu: 39.0 C mobo: 32.8 C gpu: amdgpu temp: 31.0 C
Fan Speeds (rpm): N/A
Repos:
Packages: 1570 pm: pacman pkgs: 1536 libs: 471 tools: pamac pm: rpm pkgs: 0
pm: flatpak pkgs: 34
Active pacman repo servers in: /etc/pacman.d/mirrorlist
1: https://opencolo.mm.fcix.net/manjaro/stable/$repo/$arch
2: https://mirrors.ocf.berkeley.edu/manjaro/stable/$repo/$arch
3: https://distrohub.kyiv.ua/manjaro/stable/$repo/$arch
4: https://mirrors2.manjaro.org/stable/$repo/$arch
5: https://gsl-syd.mm.fcix.net/manjaro/stable/$repo/$arch
6: https://manjaro.mirror.garr.it/manjaro/stable/$repo/$arch
7: https://ftp.gwdg.de/pub/linux/manjaro/stable/$repo/$arch
8: https://kartolo.sby.datautama.net.id/manjaro/stable/$repo/$arch
Processes:
CPU top: 5 of 499
1: cpu: 18.4% command: Godot_v4.5.1-stable_linux.x86_64 pid: 126735
mem: 1377.9 MiB (5.7%)
2: cpu: 9.8% command: firefox pid: 6233 mem: 486.4 MiB (2.0%)
3: cpu: 6.9% command: Godot_v4.5.1-stable_linux.x86_64 pid: 11421
mem: 1324.7 MiB (5.5%)
4: cpu: 4.4% command: firefox pid: 6058 mem: 1481.6 MiB (6.2%)
5: cpu: 3.1% command: chrome pid: 5683 mem: 744.7 MiB (3.1%)
Memory top: 5 of 499
1: mem: 1481.6 MiB (6.2%) command: firefox pid: 6058 cpu: 4.4%
2: mem: 1377.9 MiB (5.7%) command: Godot_v4.5.1-stable_linux.x86_64
pid: 126735 cpu: 18.4%
3: mem: 1324.7 MiB (5.5%) command: Godot_v4.5.1-stable_linux.x86_64
pid: 11421 cpu: 6.9%
4: mem: 1183.1 MiB (4.9%) command: plasmashell pid: 1430 cpu: 1.8%
5: mem: 970.5 MiB (4.0%) command: firefox pid: 6399 cpu: 1.0%
Info:
Processes: 499 Power: uptime: 7h 13m states: freeze,mem,disk suspend: s2idle
wakeups: 0 hibernate: platform avail: shutdown, reboot, suspend, test_resume
image: 9.28 GiB services: org_kde_powerdevil, power-profiles-daemon,
upowerd Init: systemd v: 257 default: graphical tool: systemctl
Compilers: clang: 20.1.8 gcc: 15.2.1 Shell: Zsh v: 5.9 running-in: konsole
inxi: 3.3.39

Mod edit: Fixed the formatting for you. :wink: