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

Fix mask manager handling #18574

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

jenshannoschwalm
Copy link
Collaborator

In dt_masks_events_mouse_moved() we can avoid further processing if a module is provided and it is disabled.

Fixes #18560

@jenshannoschwalm jenshannoschwalm added this to the 5.2 milestone Mar 20, 2025
@jenshannoschwalm jenshannoschwalm added bugfix pull request fixing a bug priority: high core features are broken and not usable at all, software crashes labels Mar 20, 2025
@MStraeten
Copy link
Collaborator

fixes broken editability but restores also behaviour that was intended to be changed with d27e582 in #18132

@jenshannoschwalm
Copy link
Collaborator Author

jenshannoschwalm commented Mar 21, 2025

@MStraeten i think the latest force-pushed versions fixes a) the stuttering and b) the hadling of masks via the mask manager (your issue)

Unfortunately there seems to be no way with current code to keep the chosen mask after collapsing the mask manager to be "editable". So that is the downside from the UI responsiveness gain we got from @ralfbrown commit.
As you mentioned we might also have some callback code when collapsing the mask manager. I couldn't find a way yet.

So - i think this is as far as we can get with this PR without a lot of work ...

@MStraeten
Copy link
Collaborator

seems to be a reasonable solution, thanks for the effort

For UI responsivness we want to avoid further processing if possible,
so we do some tests and possibly return immediately.
*module is either the module having focus or the mask manager (module == NULL)

We can skip further processing if we have
  1. a module and it's not enabled
  2. the mask manager and it is not expanded
Copy link
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me, thanks!

@TurboGit TurboGit merged commit 7782cd2 into darktable-org:master Mar 24, 2025
6 checks passed
@jenshannoschwalm jenshannoschwalm deleted the fix_mask_manager branch March 24, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix pull request fixing a bug priority: high core features are broken and not usable at all, software crashes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

editing drawn mask is broken with current master
3 participants