mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-04 02:44:50 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user