opt: opitmize subtree surface scale in overview

This commit is contained in:
DreamMaoMao 2026-05-21 21:28:38 +08:00
parent 3261950bbf
commit 17d7cb8e7d
3 changed files with 71 additions and 11 deletions

View file

@ -617,6 +617,13 @@ struct TagScrollerState {
int count;
};
typedef struct {
int32_t orig_width;
int32_t orig_height;
bool is_subsurface;
struct wl_listener destroy;
} SnapshotMetadata;
/* function declarations */
static void applybounds(
Client *c,