File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -247,11 +247,9 @@ export class ShellWindow {
247
247
}
248
248
249
249
is_maximized ( ) : boolean {
250
- let maximized = this . meta . get_maximized ( ) !== 0 ;
251
- return maximized ;
250
+ return this . meta . get_maximized ( ) !== 0
252
251
}
253
252
254
-
255
253
/**
256
254
* Window is maximized, 0 gapped or smart gapped
257
255
*/
@@ -419,10 +417,10 @@ export class ShellWindow {
419
417
let border = this . border ;
420
418
421
419
const permitted = ( ) => {
422
- return ! this . meta . is_fullscreen ( ) &&
423
- ( ! this . is_single_max_screen ( ) || this . is_snap_edge ( ) ) &&
424
- ! this . meta . minimized &&
425
- this . same_workspace ( )
420
+ return this . ext . focus_window ( ) == this
421
+ && ! this . meta . is_fullscreen ( )
422
+ && ( ! this . is_single_max_screen ( ) || this . is_snap_edge ( ) )
423
+ && ! this . meta . minimized
426
424
}
427
425
428
426
if ( permitted ( ) ) {
You can’t perform that action at this time.
0 commit comments