This repository was archived by the owner on Nov 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-7
lines changed
Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ The descendant of [autotile](https://github.com/zeroxoneafour/kwin-autotile).
2121
2222## features
2323
24- - Works in Wayland Plasma 6.0 and up (needs KWin 6.0.3 installed to drag tiles with the mouse)
24+ - Works in Wayland Plasma 6.0.4 and up
2525- Custom moddable tiling engine backend
2626- Edit tile sizes with the integrated KWin GUI
2727- Move and tile windows with your mouse and keyboard
Original file line number Diff line number Diff line change @@ -204,7 +204,9 @@ export class WindowHooks {
204204 } else if (
205205 ! this . window . fullScreen &&
206206 this . extensions . wasTiled &&
207- ! this . extensions . isTiled
207+ ! this . extensions . isTiled &&
208+ ! this . window . minimized &&
209+ ! ( this . extensions . maximized && this . extensions . isSingleMaximized )
208210 ) {
209211 this . putWindowInBestTile ( ) ;
210212 }
@@ -225,7 +227,9 @@ export class WindowHooks {
225227 } else if (
226228 ! this . window . minimized &&
227229 this . extensions . wasTiled &&
228- ! this . extensions . isTiled
230+ ! this . extensions . isTiled &&
231+ ! this . window . fullScreen &&
232+ ! ( this . extensions . maximized && this . extensions . isSingleMaximized )
229233 ) {
230234 this . putWindowInBestTile ( ) ;
231235 }
@@ -257,7 +261,9 @@ export class WindowHooks {
257261 } else if (
258262 ! maximized &&
259263 this . extensions . wasTiled &&
260- ! this . extensions . isTiled
264+ ! this . extensions . isTiled &&
265+ ! this . window . fullScreen &&
266+ ! this . window . minimized
261267 ) {
262268 this . putWindowInBestTile ( ) ;
263269 }
Original file line number Diff line number Diff line change @@ -214,19 +214,27 @@ export class DriverManager {
214214 ) ;
215215 // make registered "untiled" clients appear untiled
216216 for ( const window of driver . untiledWindows ) {
217+ const extensions = this . ctrl . windowExtensions . get ( window ) ! ;
218+ // shouldve already done this if isTiled is already false?
219+ if ( ! extensions . isTiled ) {
220+ continue ;
221+ }
217222 // sometimes effects on untiled windows dont properly apply
218- if ( window . fullScreen ) {
223+ let fullscreen : boolean = false ;
224+ if ( window . fullScreen && extensions . isTiled ) {
219225 window . fullScreen = false ;
220- window . fullScreen = true ;
226+ fullscreen = true ;
221227 }
222228 // maxmimized
223- const extensions = this . ctrl . windowExtensions . get ( window ) ! ;
224229 const wasSingleMaximized = extensions . isSingleMaximized ;
225230 this . applyUntiled ( window ) ;
226231 window . tile = null ;
227232 if ( wasSingleMaximized ) {
228233 window . setMaximize ( false , false ) ;
229234 }
235+ if ( fullscreen ) {
236+ window . fullScreen = true ;
237+ }
230238 }
231239 }
232240 this . buildingLayout = false ;
You can’t perform that action at this time.
0 commit comments