@@ -776,7 +776,6 @@ export class Ext extends Ecs.System<ExtEvent> {
776
776
777
777
/** Triggered when a window has been focused */
778
778
on_focused ( win : Window . ShellWindow ) {
779
- this . exit_modes ( ) ;
780
779
this . size_signals_unblock ( win ) ;
781
780
782
781
if ( this . exception_selecting ) {
@@ -1110,12 +1109,12 @@ export class Ext extends Ecs.System<ExtEvent> {
1110
1109
1111
1110
w_ratio = next_area . width / prev_area . width ;
1112
1111
rect . width = rect . width * w_ratio ;
1113
-
1112
+
1114
1113
if ( next_area . x < prev_area . x ) {
1115
1114
rect . x = ( ( next_area . x + rect . x - prev_area . x ) / prev_area . width ) * next_area . width ;
1116
1115
} else if ( next_area . x > prev_area . x ) {
1117
1116
rect . x = ( ( rect . x / prev_area . width ) * next_area . width ) + next_area . x ;
1118
- }
1117
+ }
1119
1118
1120
1119
if ( next_area . y < prev_area . y ) {
1121
1120
rect . y = ( ( next_area . y + rect . y - prev_area . y ) / prev_area . height ) * next_area . height ;
@@ -1135,10 +1134,10 @@ export class Ext extends Ecs.System<ExtEvent> {
1135
1134
win . move ( this , rect , ( ) => { } , false ) ;
1136
1135
// if the resulting dimensions of rect == next
1137
1136
if ( rect . width == next_area . width && rect . height == next_area . height ) {
1138
- win . meta . maximize ( Meta . MaximizeFlags . BOTH )
1137
+ win . meta . maximize ( Meta . MaximizeFlags . BOTH )
1139
1138
}
1140
1139
}
1141
- }
1140
+ }
1142
1141
}
1143
1142
1144
1143
move_monitor ( direction : Meta . DisplayDirection ) {
@@ -1792,7 +1791,7 @@ export class Ext extends Ecs.System<ExtEvent> {
1792
1791
if ( screenShield ?. locked ) this . update_display_configuration ( false ) ;
1793
1792
1794
1793
this . connect ( display , 'notify::focus-window' , ( ) => {
1795
- const window = this . get_window ( display . get_focus_window ( ) )
1794
+ const window = this . get_window ( display . get_focus_window ( ) )
1796
1795
if ( window ) this . on_focused ( window )
1797
1796
return false
1798
1797
} ) ;
@@ -2393,7 +2392,7 @@ export class Ext extends Ecs.System<ExtEvent> {
2393
2392
2394
2393
is_floating ( window : Window . ShellWindow ) : boolean {
2395
2394
let shall_float : boolean = false ;
2396
- let wm_class = window . meta . get_wm_class ( ) ;
2395
+ let wm_class = window . meta . get_wm_class ( ) ;
2397
2396
let wm_title = window . meta . get_title ( ) ;
2398
2397
2399
2398
if ( wm_class && wm_title ) {
@@ -2404,7 +2403,7 @@ export class Ext extends Ecs.System<ExtEvent> {
2404
2403
let force_tiled_tagged = this . contains_tag ( window . entity , Tags . ForceTile ) ;
2405
2404
// Tags.Tiled does not seem to matter, so not checking here
2406
2405
2407
- return ( floating_tagged && ! force_tiled_tagged ) ||
2406
+ return ( floating_tagged && ! force_tiled_tagged ) ||
2408
2407
( shall_float && ! force_tiled_tagged ) ;
2409
2408
}
2410
2409
}
@@ -2551,28 +2550,28 @@ let default_getcaption_windowpreview: any;
2551
2550
let default_getcaption_workspace : any ;
2552
2551
2553
2552
/**
2554
- * Decorates the default gnome-shell workspace/overview handling
2553
+ * Decorates the default gnome-shell workspace/overview handling
2555
2554
* of skip_task_bar. And have those window types included in pop-shell.
2556
2555
* Should only be called on extension#enable()
2557
- *
2558
- * NOTE to future maintainer:
2556
+ *
2557
+ * NOTE to future maintainer:
2559
2558
* Skip taskbar has been left out by upstream for a reason. And the
2560
2559
* Shell.WindowTracker seems to skip handling skip taskbar windows, so they are
2561
- * null or undefined. GNOME 40+ and lower version checking should be done to
2560
+ * null or undefined. GNOME 40+ and lower version checking should be done to
2562
2561
* constantly support having them within pop-shell.
2563
2562
*
2564
2563
* Known skip taskbars ddterm, conky, guake, minimized to tray apps, etc.
2565
2564
*
2566
- * While minimize to tray are the target for this feature,
2567
- * skip taskbars that float/and avail workspace all
2565
+ * While minimize to tray are the target for this feature,
2566
+ * skip taskbars that float/and avail workspace all
2568
2567
* need to added to config.ts as default floating
2569
2568
*
2570
2569
*/
2571
2570
function _show_skip_taskbar_windows ( ext : Ext ) {
2572
2571
let cfg = ext . conf ;
2573
2572
if ( ! GNOME_VERSION ?. startsWith ( "40." ) ) {
2574
- // TODO GNOME 40 added a call to windowtracker and app var is not checked if null
2575
- // in WindowPreview._init(). Then new WindowPreview() is being called on
2573
+ // TODO GNOME 40 added a call to windowtracker and app var is not checked if null
2574
+ // in WindowPreview._init(). Then new WindowPreview() is being called on
2576
2575
// _addWindowClone() of workspace.js.
2577
2576
// So it has to be skipped being overriden for now.
2578
2577
@@ -2712,8 +2711,8 @@ function _show_skip_taskbar_windows(ext: Ext) {
2712
2711
* This is the cleanup/restore of the decorator for skip_taskbar when pop-shell
2713
2712
* is disabled.
2714
2713
* Should only be called on extension#disable()
2715
- *
2716
- * Default functions should be checked if they exist,
2714
+ *
2715
+ * Default functions should be checked if they exist,
2717
2716
* especially when skip taskbar setting was left on during an update
2718
2717
*
2719
2718
*/
@@ -2729,21 +2728,21 @@ function _hide_skip_taskbar_windows() {
2729
2728
} else {
2730
2729
if ( default_getcaption_windowpreview ) {
2731
2730
const { WindowPreview } = imports . ui . windowPreview ;
2732
- WindowPreview . prototype . _getCaption =
2731
+ WindowPreview . prototype . _getCaption =
2733
2732
default_getcaption_windowpreview ;
2734
2733
}
2735
2734
}
2736
2735
2737
2736
if ( default_isoverviewwindow_ws_thumbnail ) {
2738
- WorkspaceThumbnail . prototype . _isOverviewWindow =
2737
+ WorkspaceThumbnail . prototype . _isOverviewWindow =
2739
2738
default_isoverviewwindow_ws_thumbnail ;
2740
2739
}
2741
2740
2742
2741
if ( default_init_appswitcher )
2743
2742
AppSwitcher . prototype . _init = default_init_appswitcher ;
2744
2743
2745
2744
if ( default_getwindowlist_windowswitcher ) {
2746
- WindowSwitcherPopup . prototype . _getWindowList =
2745
+ WindowSwitcherPopup . prototype . _getWindowList =
2747
2746
default_getwindowlist_windowswitcher ;
2748
2747
}
2749
2748
}
0 commit comments