Skip to content

Commit e217a91

Browse files
committed
floating: Throttle resizes
1 parent df74a32 commit e217a91

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/shell/layout/floating/grabs/resize.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ impl ResizeSurfaceGrab {
120120
},
121121
self.last_window_size.as_global(),
122122
));
123-
self.window.configure();
123+
if self.window.latest_size_committed() {
124+
self.window.configure();
125+
}
124126

125127
false
126128
}

src/shell/layout/floating/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,9 @@ impl FloatingLayout {
990990
geo.as_local()
991991
.to_global(self.space.outputs().next().unwrap()),
992992
);
993-
mapped.configure();
993+
if mapped.latest_size_committed() {
994+
mapped.configure();
995+
}
994996

995997
true
996998
}

0 commit comments

Comments
 (0)