hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.79k stars 447 forks source link

Support for Wayland #27

Closed hluk closed 2 years ago

hluk commented 11 years ago

Basically Wayland is the new X11 and Weston is its window manager.

Since Qt 5 supports Wayland it should be possible to implement some basic functionality for it src/platform/wayland and test it on Weston.

Priority list:

Update 2021-04-11:

zhanglongqi commented 9 months ago

the shortcut works after I added an empty shortcut in system settings under KDE NEON wayland desktop.

image

elbowz commented 8 months ago

the shortcut works after I added an empty shortcut in system settings under KDE NEON wayland desktop.

Same on:

Operating System: Arch Linux KDE Plasma Version: 6.0.1 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.7.9-arch1-1 (64-bit) Graphics Platform: Wayland

But it uses the last window position and size...no under mouse cursor.

I have also tried copyq triggerGlobalShortcut "Show main window under mouse cursor" after install Wayland Support script without luck.

hluk commented 8 months ago

I have also tried copyq triggerGlobalShortcut "Show main window under mouse cursor" after install Wayland Support script without luck.

AFAIK, Wayland does not support setting custom window position.

Vinaum8 commented 4 weeks ago

https://askubuntu.com/a/1428532

I disable wayland in my ubuntu 24.10 with comment above.

guettli commented 5 days ago

This comment works fine:

file .config/autostart/copyq.desktop

Exec=env QT_QPA_PLATFORM=xcb /usr/bin/copyq

Ubuntu 24.04

iago-lito commented 2 days ago

This enables copyq startup, but it still only works on X windows then, right?

guettli commented 2 days ago

@iago-lito Exec=env QT_QPA_PLATFORM=xcb /usr/bin/copyq this works for Wayland.

But today I switched to X again, because ActivityWatch does not work under Wayland.

iago-lito commented 2 days ago

I mean, it does launch on wayland, but it only works within windows that still use the X protocol (XWayland or something). Pure wayland windows don't seem to work. (= it works on windows within which xeyes does track your cursor, not for other windows)