mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-06 21:48:30 -04:00
refactor(compositor): reduce unnecessary UI updates
- Defer updates when window state hasn't actually changed - Cache frame-blocked state per screen instead of recalculating constantly - keep popouts cache so reopening them is instant & clean up otherwise
This commit is contained in:
@@ -134,12 +134,7 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: CompositorService
|
||||
function onToplevelsChanged() {
|
||||
root._maybeResolveBackend();
|
||||
}
|
||||
}
|
||||
// Backend re-resolution on toplevel activity is covered by CompositorService.frameBlockedByScreen.
|
||||
|
||||
function _usesConnectedBackendForScreen(targetScreen) {
|
||||
return CompositorService.usesConnectedFrameChromeForScreen(targetScreen);
|
||||
|
||||
Reference in New Issue
Block a user