Skip to content

Commit

Permalink
fix: remove hint on fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmaranan authored and mmstick committed Sep 8, 2020
1 parent 7f88001 commit 030cfa5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class ShellWindow {

if (this.meta.get_compositor_private()?.get_stage())
this._on_style_changed();

this._update_border_layout();
}

Expand Down Expand Up @@ -296,7 +296,10 @@ export class ShellWindow {
show_border() {
if (this.ext.settings.active_hint()) {
let border = this._border;
if (!this.is_maximized() && !this.meta.minimized && this.same_workspace()) {
if (!this.is_maximized() &&
!this.meta.minimized &&
!this.meta.is_fullscreen() &&
this.same_workspace()) {
border.show();
}
this.restack();
Expand Down Expand Up @@ -333,7 +336,7 @@ export class ShellWindow {
let border = this._border;
let actor = this.meta.get_compositor_private();
let win_group = global.window_group;

if (actor && border && win_group) {
// move the border above the window group first
win_group.set_child_above_sibling(border, null);
Expand Down Expand Up @@ -384,7 +387,7 @@ export class ShellWindow {

border.set_position(frameX - borderSize, frameY - borderSize);
border.set_size(frameWidth + 2 * borderSize, frameHeight + 2 * borderSize);

this.restack();
}

Expand Down

0 comments on commit 030cfa5

Please sign in to comment.