File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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> {
184184 self . set_decorations ( state. decorated ) ?;
185185 }
186186
187- if flags. contains ( StateFlags :: SIZE ) {
188- self . set_size ( PhysicalSize {
189- width : state. width ,
190- height : state. height ,
191- } ) ?;
192- }
193-
194187 if flags. contains ( StateFlags :: POSITION ) {
195188 let position = ( state. x , state. y ) . into ( ) ;
196189 let size = ( state. width , state. height ) . into ( ) ;
@@ -214,6 +207,13 @@ impl<R: Runtime> WindowExt for Window<R> {
214207 }
215208 }
216209
210+ if flags. contains ( StateFlags :: SIZE ) {
211+ self . set_size ( PhysicalSize {
212+ width : state. width ,
213+ height : state. height ,
214+ } ) ?;
215+ }
216+
217217 if flags. contains ( StateFlags :: MAXIMIZED ) && state. maximized {
218218 self . maximize ( ) ?;
219219 }
You can’t perform that action at this time.
0 commit comments