File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
always-open-on-active-screen/contents/code Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ const config = {
1919 if ( config . debugMode ) console . debug ( "alwaysopenonactivescreen:" , ...args ) ;
2020 }
2121 debug ( "initializing" ) ;
22+ debug ( "config:" , config . allowMode ? "allow" : "deny" , "list" , config . classList ) ;
2223
2324// when a client is added
2425workspace . clientAdded . connect ( client => {
@@ -29,8 +30,8 @@ workspace.clientAdded.connect(client => {
2930
3031 // abort conditions
3132 if ( ! client // null
32- || ( config . allowMode && ! config . classList . includes ( String ( client . resourceClass ) ) ) // using allowmode and window class is not in list
33- || ( config . denyMode && config . classList . includes ( String ( client . resourceClass ) ) ) // using denymode and window class is in list
33+ || ( config . allowMode && config . classList . includes ( String ( client . resourceClass ) ) ) // using allowmode and window class is in list
34+ || ( config . denyMode && ! config . classList . includes ( String ( client . resourceClass ) ) ) // using denymode and window class is not in list
3435 || ! ( client . resizeable && client . moveable && client . moveableAcrossScreens ) // not regeomtrizable
3536 || client . screen == activeScreen ) // already on right screen
3637 return ;
You can’t perform that action at this time.
0 commit comments