internal: Remake borders as window decorations (#4104)

This commit is contained in:
Vaxry 2023-12-10 16:28:12 +00:00 committed by GitHub
parent b3dc58e104
commit 9f5b9053c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 201 additions and 78 deletions

View file

@ -229,6 +229,8 @@ void CAnimationManager::tick() {
case AVARDAMAGE_BORDER: {
RASSERT(PWINDOW, "Tried to AVARDAMAGE_BORDER a non-window AVAR!");
// TODO: move this to the border class
// damage only the border.
static auto* const PROUNDING = &g_pConfigManager->getConfigValuePtr("decoration:rounding")->intValue;
const auto ROUNDINGSIZE = *PROUNDING + 1;