| Summary: | Very strange code at main.cpp | ||
|---|---|---|---|
| Product: | [Applications] Spectacle | Reporter: | Askar Safin <safinaskar> |
| Component: | General | Assignee: | Boudhayan Gupta <me> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | kde |
| Priority: | NOR | ||
| Version First Reported In: | 19.11.80 | ||
| Target Milestone: | --- | ||
| Platform: | Debian stable | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Askar Safin
2019-11-28 20:30:43 UTC
Hello Askar, that code is indeed correct. You can think here of a transient just as a window. Note that a popup is also a single window. What this does it maps from the user facing option to the options in the code. For the user a popup is not a different window compared to the parent window hence the mapping from windowundercursor to transientwithparent. I agree it can be confusing and others had the same thoughts as you in the past (compare https://phabricator.kde.org/D23891) |