File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -417,17 +417,22 @@ export class ShellWindow {
417
417
this . restack ( ) ;
418
418
if ( this . ext . settings . active_hint ( ) ) {
419
419
let border = this . border ;
420
- if ( ! this . meta . is_fullscreen ( ) &&
421
- ( ! this . is_single_max_screen ( ) || this . is_snap_edge ( ) ) &&
422
- ! this . meta . minimized &&
423
- this . same_workspace ( ) ) {
420
+
421
+ 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 ( )
426
+ }
427
+
428
+ if ( permitted ( ) ) {
424
429
if ( this . meta . appears_focused ) {
425
430
border . show ( ) ;
426
431
427
432
// Ensure that the border is shown
428
433
if ( ACTIVE_HINT_SHOW_ID !== null ) GLib . source_remove ( ACTIVE_HINT_SHOW_ID )
429
434
ACTIVE_HINT_SHOW_ID = GLib . timeout_add ( GLib . PRIORITY_DEFAULT , 600 , ( ) => {
430
- if ( ! this . same_workspace ( ) || border . visible ) {
435
+ if ( ! this . same_workspace ( ) || border . visible || ! permitted ( ) ) {
431
436
ACTIVE_HINT_SHOW_ID = null
432
437
return GLib . SOURCE_REMOVE
433
438
}
You can’t perform that action at this time.
0 commit comments