Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird dragging on text selection after switching to QMainWindow #1075

Open
iamkroot opened this issue May 2, 2024 · 2 comments
Open

Weird dragging on text selection after switching to QMainWindow #1075

iamkroot opened this issue May 2, 2024 · 2 comments

Comments

@iamkroot
Copy link

iamkroot commented May 2, 2024

After f7727a8, I'm seeing extremely annoying behavior when selecting text. Essentially, if we drag on the empty portions of the page, instead of snapping the selection to text, it starts dragging the window.

See gif for before/after.

output (higher quality video link)

In the beginning, sioyek is on an old version. I switch to the build from bad commit at around 8 seconds.

Maybe there's a way to opt out of this dragging behavior at the Qt level?

@ahrm
Copy link
Owner

ahrm commented May 2, 2024

I think this maybe an interaction of QMainWindow with your window manager because I can't reproduce it on my machines. What window manager are you using here?

@iamkroot
Copy link
Author

iamkroot commented May 2, 2024

Hmm I'm using KWin on X11 (will report on Wayland in a bit).

Other than that, I'm also running Kvantum. That has a setting called "Drag from:" with the options "Titlebar", "Menubar", "Menubar and primary toolbar", and "Anywhere". I've set it to "Menubar and primary toolbar".

Will check if it is something to do with Kvantum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants