Skip to content

Conversation

@leolost2605
Copy link
Member

@leolost2605 leolost2605 commented Apr 11, 2025

  • Same name monitor_scale everywhere to show it belongs together
  • Use property bindings to update scales of children
  • Make monitor_scale always construct set
  • Therefore use notify instead of setters for reallocation
  • The last two points are to avoid duplicate allocations on construction:

Currently e.g. in window clone we call reallocate twice when constructing:

  • the first time in construct
  • the second time in the monitor scale setter

Same in workspace clone.

Sidenote: I plan to make closebutton and windowicon scale settable which is why I already require construct set and use notify in the windowclone even though we could currently make monitor scale there only set and call reallocate in its setter.

- Same name monitor_scale everywhere to show it belongs together
- Use property bindings to update scales of children
- Make monitor_scale always construct set
- Therefore use notify instead of setters for reallocation
- The last two points are to avoid duplicate allocations on construction
@leolost2605 leolost2605 requested a review from a team April 11, 2025 14:37
@leolost2605 leolost2605 marked this pull request as ready for review April 11, 2025 14:37
@lenemter lenemter merged commit 94ef835 into main Apr 16, 2025
4 of 5 checks passed
@lenemter lenemter deleted the leolost/monitor-scale branch April 16, 2025 18:45
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

Successfully merging this pull request may close these issues.

3 participants