Skip to content

masks: Rework the mask handling/edting when collapsing mask manager.#21502

Open
TurboGit wants to merge 5 commits into
masterfrom
po/fix-mask-manager
Open

masks: Rework the mask handling/edting when collapsing mask manager.#21502
TurboGit wants to merge 5 commits into
masterfrom
po/fix-mask-manager

Conversation

@TurboGit

@TurboGit TurboGit commented Jul 6, 2026

Copy link
Copy Markdown
Member

This makes it possible to simplify the code in darkroom and moreover
is cleaner as the actual check is done at the right place.

This fixes the scroll, click, release events when mask manager is
closed.

Fixes #21436

Some notes on implementation:

To avoid messing with the state of mask manager and/or actual expanded and focused modules I have introduced a new "expanded_state" callback (hook) for lib modules. This is called each time a module is either expanded or collapsed. It is using this hook that the mask manager check if the shapes being edited are to be hidden or kept if the iop module is using them.

TurboGit added 5 commits July 6, 2026 23:11
Returns TRUE is a given mask is used by module.

Part of #21436.
This makes it possible to simplify the code in darkroom and moreover
is cleaner as the actual check is done at the right place.

This fixes the scroll, click, release events when mask manager is
closed.

Fixes #21436
@TurboGit TurboGit added this to the 5.8 milestone Jul 6, 2026
@TurboGit TurboGit added bugfix pull request fixing a bug priority: medium core features are degraded in a way that is still mostly usable, software stutters scope: UI user interface and interactions scope: codebase making darktable source code easier to manage release notes: pending labels Jul 6, 2026
@jenshannoschwalm

Copy link
Copy Markdown
Collaborator

I just tested it, there are possibly some corner cases that i might have missed but so far all good :-)

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: medium core features are degraded in a way that is still mostly usable, software stutters release notes: pending scope: codebase making darktable source code easier to manage scope: UI user interface and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mask stays active after closing the mask manager

2 participants