Skip to content

Commit

Permalink
fix for fullscreen windows: disable unidirect display
Browse files Browse the repository at this point in the history
  • Loading branch information
Totto16 committed Apr 20, 2024
1 parent 5acb8f5 commit e52dfbb
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 e52dfbb

Please sign in to comment.