Skip to content

Commit

Permalink
Merge pull request #277 from oae/fix-gnome-46-fullscreen-issue
Browse files Browse the repository at this point in the history
Fix Wayland Fullscreen issue
  • Loading branch information
Totto16 authored Apr 20, 2024
2 parents 2c362dc + 07ffce9 commit 00fd95d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Extensions } from '@girs/gnome-shell';
import type { ExtensionMetadata } from '@girs/gnome-shell/dist/types/extension-metadata';
import Shell from '@girs/shell-14';
const { Extension } = Extensions.extension;
import Meta from '@girs/meta-14';
import PanoIndicator from '@pano/components/indicator';
import { PanoWindow } from '@pano/containers/panoWindow';
import { ClipboardContent, ClipboardManager, ContentType } from '@pano/utils/clipboardManager';
Expand All @@ -23,6 +24,9 @@ import {
import { addTopChrome, removeChrome, removeVirtualKeyboard } from '@pano/utils/ui';

const debug = logger('extension');

const global = Shell.Global.get();

export default class PanoExtension extends Extension {
private keyManager: KeyManager | null = null;
private clipboardManager: ClipboardManager | null = null;
Expand Down Expand Up @@ -53,6 +57,7 @@ export default class PanoExtension extends Extension {
this.start();
this.indicator.enable();
this.enableDbus();
Meta.disable_unredirect_for_display(global.display);
debug('extension is enabled');
}

Expand All @@ -64,6 +69,7 @@ export default class PanoExtension extends Extension {
this.keyManager = null;
this.clipboardManager = null;
this.indicator = null;
Meta.enable_unredirect_for_display(global.display);
debug('extension is disabled');
}

Expand Down

0 comments on commit 00fd95d

Please sign in to comment.