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

Can't use left mouse button on RichHScrollBar #2

Open
s09bQ5 opened this issue Nov 3, 2015 · 3 comments
Open

Can't use left mouse button on RichHScrollBar #2

s09bQ5 opened this issue Nov 3, 2015 · 3 comments

Comments

@s09bQ5
Copy link
Contributor

s09bQ5 commented Nov 3, 2015

Due to my window manager's (Fluxbox) implementation of click to focus, there is an enterEvent for every left button click even if the mouse was already inside the widget. This resets _overType to OverNothing because of 0d930fe.

It is unclear to me what 0d930fe tries to improve by adding enterEvent and leaveEvent. If I remove the overriding methods, everything works fine and I am also no longer restricted to the application window when resizing the visible region with the right mouse button.

@Bramas
Copy link
Owner

Bramas commented Nov 3, 2015

Thanks for the detailed comment.
I don't remember why exactly I added this events. Maybe, because if we leave the widget while overing some object, the object still look like it is overed. If this is the case, then only the leaveEvent is needed, so that we can remove the enterEvent, and everything should work with Fluxbox.

@s09bQ5
Copy link
Contributor Author

s09bQ5 commented Nov 4, 2015

I think the correct way to fix this is to set _overType one last time in mousePressEvent before it is locked by _mousePressed. If it works, I'll make a commit to my tree.

@Bramas
Copy link
Owner

Bramas commented Nov 4, 2015

you're totally right, that's the solution.

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