"Show main window under mouse cursor" doesn't show the main window at the current mouse pointer position when executed the first time
Describe the bug when using the shortcut "Show main window under mouse cursor" to place copyq at the current mouse pointer position, copyq opens at a random point, pressing the shortcut a second time, puts copyq at the current mouse pointer position
To Reproduce Steps to reproduce the behavior:
- execute "Show main window under mouse cursor"
- main window opens at a random point
- pressing the shortcut a second time, opens the main window at the current mouse pointer position
Expected behavior the main window opens at the current mouse pointer position
Version, OS and Environment CopyQ Clipboard Manager 6.1.0 Qt: 5.15.2 KNotifications: 5.92.0 Compiler: GCC Arch: x86_64-little_endian-lp64
I assume this happens under Wayland which does not support custom window positioning and getting mouse pointer position.
No, this happens under X11
What's you window manager? I briefly tested this in openbox without seeing any issue.
kde
it doesnt work when i do this:
- open one app
- left click inside the app (active it as active window)
- move the mouse somewhere else one the screen
- press the defined copyq shortcut to show it below the mouse pointer
- window is opened somewhere (not below the mouse pointer)
- press the shortcut again - now it's below the mouse pointer
It could be related to some problems with window geometry and multiple screens - which is fixed but not yet released.
which commit fixes the bug? i can backport it and try it
Commits 3bd6f29, 0774563 and b0dd430. Easier if you try building from latest master.
i applied the patches and it doesnt fix the bug
I've tested this in Xnest session and it looks like kwin itself restores the window position after it is shown again.
I have no idea how to move the window without adding ugly timers that would reset the position after an interval (this has been the previous implementation but it did not work well on various window managers).
I have the same issue. On Ubuntu: Version 6.1.0 (flatpak) doesn't position the window under the cursor, but version 3.10.0-1 (deb) that is in ubuntu repo works properly. On Pop!_OS: Version 6.0.1 (deb) also doesn't work properly.
Same issue,
~$ copyq -v
CopyQ Clipboard Manager 6.1.0
Qt: 5.15.2
KNotifications: 5.78.0
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Debian GNU/Linux 11 (bullseye)
fixed in the lastest version