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
Clicking on color in docked palette tab undocks the palette tab #643
Comments
This should definitely not be happening. I can't reproduce in GNOME using First question: can you drag the colour swatches at all?
|
No, neither when docked or undocked. All drags register as tab drag (that is, the 'palette' icon appears under the cursor during the drag, rather than a color panel).
Haven't tried yet, will edit in result.
Should be able to do this easily, will edit in result. EDIT2: verified that 3.19.5 works fine |
OK, 3.19.8 is when the bug(?) was introduced. I'm still not 100% sure that MyPaint isn't involved in the fault here, as I've had difficulty finding an GTK3 program that uses tabs similarly. |
Doh, I just updated my debian sid-- libgtk-3-0:amd64 3.20.3-1 |
@briend |
No, I couldn't find any problems with that demo. I also need to revise my earlier statement regarding the other tool windows-- it definitely happens there as well. While the sliders themselves on the tool options don't exhibit the issue, if you click just above the sliders it will grab and move the window most of the time. I made a video to show this-- a video is worth a thousand pictures: |
I reverted to these packages and the issue disappeared: |
I have the same issues with all dockers. Whenever I select something inside a docker and the mouse moves while the mouse button/pen tip is down the docker undocks. Arch Linux (KDE Plasma) |
@tr37ion GTK version please? |
libgtk-3.so.0 -> libgtk-3.so.0.2000.3 |
@tr37ion
Assuming I have the package name right, and assuming that Arch is anything like MSYS2. |
Version : 3.20.3-3 |
Reproduced on Windows MSYS2 using GTK 3.21.1. Win7 in a VM, with no Aero effects. MyPaint's colour selectors do not initiate their own drags. They let the toolkit do that with its default handler, and invoke If the button press handler in our We should probably be initializing the drag ourself in the button press handler. (The drag sensitivity is way too high as well. It's not respecting " |
Okay, both the sensitivity thing and the accidental drag-out of the tab should be fixed now, for the palette window at least. Let me know if it crops up for any other dockpanels. |
Using the current git (1.3.0-alpha+git.5b86415 on Arch Linux; gtk3 3.20.3-3), this also affects the brush selection dockable for me when clicking a brush. It's better than in the 1.2.0 stable but too easy IMO to accidentally drag and undock, especially when using a drawing tablet. Personally I think it shouldn't be possible at all to move that dock by clicking on a brush; not sure if it's intentional behavior. |
Reopened for the brush issue too. I suspect it has the same cause. |
The page widgets that contain the sidebar panels now fully consume the types of pointer event that can start a drag. This stops these events propagating up to the containing GtkNotebook. Fixes accidental/hypersensitive dragging of the current page's tab when clicking or dragging in a repositionable notebook page since GTK 3.19.8. Better fix for #643.
Now the problem events are consumed elsewhere, we don't need to consume them here. But be a bit more explicit about it now. Sometimes an event really should be consumed in the base class's internal handler. Standardize the coding a bit, to make it more obvious. The earlier fix for #643 was preventing the palette and brush group menus from triggering ☹
The page widgets that contain the sidebar panels now fully consume the types of pointer event that can start a drag. This stops these events propagating up to the containing GtkNotebook. Fixes accidental/hypersensitive dragging of the current page's tab when clicking or dragging in a repositionable notebook page since GTK 3.19.8. Better fix for #643. [Cherry-pick of 996a33e from master]
Fixed properly now, on both active branches. The earlier fix was preventing the palette panel's menu from firing 😭 |
Nice, looks like it is fixed now :) Thanks. |
Steps to reproduce:
Result: The color is selected (correct) but the tab is also undocked/moved into its own window (incorrect). If I re-dock it, the same thing will happen on subsequent occasions (nearly every click will
Mypaint Version
git 43c2a45: "About box: report GLib version too, on Windows"
Platform details:
The text was updated successfully, but these errors were encountered: