File tree 2 files changed +13
-7
lines changed
2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ window-state : patch
3
+ window-state-js : patch
4
+ ---
5
+
6
+ Fix window size gets bigger/smaller on secondary monitor with a different scaling than the primary one
Original file line number Diff line number Diff line change @@ -184,13 +184,6 @@ impl<R: Runtime> WindowExt for Window<R> {
184
184
self . set_decorations ( state. decorated ) ?;
185
185
}
186
186
187
- if flags. contains ( StateFlags :: SIZE ) {
188
- self . set_size ( PhysicalSize {
189
- width : state. width ,
190
- height : state. height ,
191
- } ) ?;
192
- }
193
-
194
187
if flags. contains ( StateFlags :: POSITION ) {
195
188
let position = ( state. x , state. y ) . into ( ) ;
196
189
let size = ( state. width , state. height ) . into ( ) ;
@@ -214,6 +207,13 @@ impl<R: Runtime> WindowExt for Window<R> {
214
207
}
215
208
}
216
209
210
+ if flags. contains ( StateFlags :: SIZE ) {
211
+ self . set_size ( PhysicalSize {
212
+ width : state. width ,
213
+ height : state. height ,
214
+ } ) ?;
215
+ }
216
+
217
217
if flags. contains ( StateFlags :: MAXIMIZED ) && state. maximized {
218
218
self . maximize ( ) ?;
219
219
}
You can’t perform that action at this time.
0 commit comments