gtk: only trigger resize callbacks and overlay when size actually changes

Fixes #11970

Also fixes problem that resize overlay would intercept mouse activity
while active.
This commit is contained in:
Jeffrey C. Ollie
2026-03-29 23:38:34 -05:00
parent 4903e2821d
commit af36959942
3 changed files with 22 additions and 8 deletions

View File

@@ -12,6 +12,10 @@ pub const ContentScale = struct {
pub const SurfaceSize = struct {
width: u32,
height: u32,
pub fn eql(self: *const SurfaceSize, other: *const SurfaceSize) bool {
return self.width == other.width and self.height == other.height;
}
};
/// The position of the cursor in pixels.