@@ -30,7 +30,7 @@ const config = {
30
30
// initialization
31
31
///////////////////////
32
32
33
- debugMode = true ;
33
+ debugMode = false ;
34
34
function debug ( ...args ) { if ( debugMode ) { console . debug ( "Floating Tiles:" , ...args ) ; } }
35
35
debug ( "initializing" ) ;
36
36
debug ( "auto restore:" , config . autoRestore ) ;
@@ -115,11 +115,13 @@ workspace.clientAdded.connect(onAdded);
115
115
function onAdded ( client ) {
116
116
debug ( "\nadded" , client . caption ) ;
117
117
added = [ client ] ;
118
- client . moveResizedChanged . connect ( onRegeometrized ) ;
119
- client . geometryChanged . connect ( onRegeometrized ) ;
120
- client . clientGeometryChanged . connect ( onRegeometrized ) ;
121
- client . frameGeometryChanged . connect ( onRegeometrized ) ;
122
- client . clientFinishUserMovedResized . connect ( onRegeometrized ) ;
118
+ client . geometryChanged . connect ( tileGaps ) ;
119
+ client . clientGeometryChanged . connect ( tileGaps ) ;
120
+ client . frameGeometryChanged . connect ( tileGaps ) ;
121
+ client . clientFinishUserMovedResized . connect ( tileGaps ) ;
122
+ client . moveResizedChanged . connect ( tileGaps ) ;
123
+ client . fullScreenChanged . connect ( onRegeometrized ) ;
124
+ client . clientMaximizedStateChanged . connect ( onRegeometrized ) ;
123
125
client . screenChanged . connect ( onRegeometrized ) ;
124
126
client . desktopChanged . connect ( onRegeometrized ) ;
125
127
workspace . currentDesktopChanged . connect ( onRegeometrized ) ;
@@ -131,8 +133,8 @@ function onAdded(client) {
131
133
}
132
134
function onRegeometrized ( client ) {
133
135
// don't act on windows that are still undergoing geometry change
134
- debug ( "\nregeometrized" , client && client . caption ? client . caption : client ) ;
135
- if ( ! ( client == null || client == undefined ) && ( client . move || client . resize ) ) return ;
136
+ if ( client == null || client == undefined || client . caption == undefined || client . caption == "Plasma" || client . move || client . resize ) return ;
137
+ debug ( "\nregeometrized" , client . caption ) ;
136
138
removeMinimized ( client ) ;
137
139
minimizeOverlapping ( client ) ;
138
140
restoreMinimized ( ) ;
@@ -246,7 +248,7 @@ function reactivateRecent() {
246
248
function undoAutoReactivate ( client ) {
247
249
if ( removed ) {
248
250
removed = false ;
249
- if ( client . normallWindow ) {
251
+ if ( client . normallWindow || client . desktopWindow ) {
250
252
debug ( "undo auto reactivate" , client . caption ) ;
251
253
reactivateRecent ( ) ;
252
254
return true ;
0 commit comments