File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -153,9 +153,9 @@ declare namespace Meta {
153
153
}
154
154
155
155
enum MaximizeFlags {
156
- HORIZONTAL ,
157
- VERTICAL ,
158
- BOTH
156
+ HORIZONTAL = 1 ,
157
+ VERTICAL = 2 ,
158
+ BOTH = 3
159
159
}
160
160
161
161
enum MotionDirection {
@@ -187,6 +187,7 @@ declare namespace Meta {
187
187
delete ( timestamp : number ) : void ;
188
188
get_buffer_rect ( ) : Rectangular ;
189
189
get_compositor_private ( ) : Clutter . Actor | null ;
190
+ get_display ( ) : Meta . Display | null ;
190
191
get_description ( ) : string ;
191
192
get_frame_rect ( ) : Rectangular ;
192
193
get_maximized ( ) : number ;
Original file line number Diff line number Diff line change @@ -238,7 +238,8 @@ export class ShellWindow {
238
238
}
239
239
240
240
is_maximized ( ) : boolean {
241
- return this . meta . get_maximized ( ) !== 0 ;
241
+ let maximized = this . meta . get_maximized ( ) === 3 ;
242
+ return maximized ;
242
243
}
243
244
244
245
/**
@@ -399,7 +400,9 @@ export class ShellWindow {
399
400
this . restack ( ) ;
400
401
if ( this . ext . settings . active_hint ( ) ) {
401
402
let border = this . border ;
403
+ let monitor_count = this . meta . get_display ( ) . get_n_monitors ( ) ;
402
404
if ( ! this . meta . is_fullscreen ( ) &&
405
+ ! ( this . is_maximized ( ) && monitor_count == 1 ) &&
403
406
! this . meta . minimized &&
404
407
this . same_workspace ( ) ) {
405
408
if ( this . meta . appears_focused ) {
@@ -424,8 +427,8 @@ export class ShellWindow {
424
427
*/
425
428
restack ( updateState : RESTACK_STATE = RESTACK_STATE . NORMAL ) {
426
429
this . update_border_layout ( ) ;
427
-
428
- if ( this . meta . is_fullscreen ( ) ) {
430
+ let monitor_count = this . meta . get_display ( ) . get_n_monitors ( ) ;
431
+ if ( this . meta . is_fullscreen ( ) || ( this . is_max_screen ( ) && monitor_count == 1 ) ) {
429
432
this . hide_border ( )
430
433
}
431
434
@@ -641,4 +644,4 @@ function pointer_already_on_window(meta: Meta.Window): boolean {
641
644
const cursor = lib . cursor_rect ( )
642
645
643
646
return cursor . intersects ( meta . get_frame_rect ( ) )
644
- }
647
+ }
You can’t perform that action at this time.
0 commit comments