2 Commits

Author SHA1 Message Date
Renovate Bot
982ead1c10 chore(deps): update dependency typescript to v6
All checks were successful
Build and Test / build (pull_request) Successful in 29s
Build and Test / release (pull_request) Has been skipped
2026-03-24 16:59:54 +00:00
Lucas Oskorep
75f2f107de fix: fullscreen/games should not be moved
All checks were successful
Build and Test / build (push) Successful in 36s
Build and Test / release (push) Successful in 11s
2026-03-17 14:33:33 -04:00
3 changed files with 18 additions and 9 deletions

View File

@@ -32,7 +32,7 @@
"eslint-plugin-jsdoc": "^62.0.0",
"jest": "^30.0.0",
"ts-jest": "^29.1.2",
"typescript": "^5.9.2"
"typescript": "^6.0.0"
},
"dependencies": {
"@girs/mtk-17": "17.0.0-4.0.0-beta.38"

16
pnpm-lock.yaml generated
View File

@@ -53,10 +53,10 @@ importers:
version: 30.2.0(@types/node@25.1.0)
ts-jest:
specifier: ^29.1.2
version: 29.4.6(@babel/core@7.28.6)(@jest/transform@30.2.0)(@jest/types@30.2.0)(babel-jest@30.2.0(@babel/core@7.28.6))(jest-util@30.2.0)(jest@30.2.0(@types/node@25.1.0))(typescript@5.9.3)
version: 29.4.6(@babel/core@7.28.6)(@jest/transform@30.2.0)(@jest/types@30.2.0)(babel-jest@30.2.0(@babel/core@7.28.6))(jest-util@30.2.0)(jest@30.2.0(@types/node@25.1.0))(typescript@6.0.2)
typescript:
specifier: ^5.9.2
version: 5.9.3
specifier: ^6.0.0
version: 6.0.2
packages:
@@ -1710,8 +1710,8 @@ packages:
resolution: {integrity: sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==}
engines: {node: '>=16'}
typescript@5.9.3:
resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
typescript@6.0.2:
resolution: {integrity: sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==}
engines: {node: '>=14.17'}
hasBin: true
@@ -3959,7 +3959,7 @@ snapshots:
'@sindresorhus/base62': 1.0.0
reserved-identifiers: 1.2.0
ts-jest@29.4.6(@babel/core@7.28.6)(@jest/transform@30.2.0)(@jest/types@30.2.0)(babel-jest@30.2.0(@babel/core@7.28.6))(jest-util@30.2.0)(jest@30.2.0(@types/node@25.1.0))(typescript@5.9.3):
ts-jest@29.4.6(@babel/core@7.28.6)(@jest/transform@30.2.0)(@jest/types@30.2.0)(babel-jest@30.2.0(@babel/core@7.28.6))(jest-util@30.2.0)(jest@30.2.0(@types/node@25.1.0))(typescript@6.0.2):
dependencies:
bs-logger: 0.2.6
fast-json-stable-stringify: 2.1.0
@@ -3970,7 +3970,7 @@ snapshots:
make-error: 1.3.6
semver: 7.7.3
type-fest: 4.41.0
typescript: 5.9.3
typescript: 6.0.2
yargs-parser: 21.1.1
optionalDependencies:
'@babel/core': 7.28.6
@@ -3992,7 +3992,7 @@ snapshots:
type-fest@4.41.0: {}
typescript@5.9.3: {}
typescript@6.0.2: {}
uglify-js@3.19.3:
optional: true

View File

@@ -47,6 +47,10 @@ export class WindowWrapper {
return this._window.get_frame_rect();
}
isFullscreen(): boolean {
return this._window.is_fullscreen();
}
getTabLabel(): string {
const rawAppName = this._window.get_wm_class() ?? '';
// Strip reverse-domain prefix (e.g. "org.gnome.Nautilus" -> "Nautilus")
@@ -140,6 +144,11 @@ export class WindowWrapper {
return;
}
if (this.isFullscreen()) {
Logger.info("STOPPED RESIZE BECAUSE WINDOW IS FULLSCREEN");
return;
}
const actor = this._window.get_compositor_private() as Clutter.Actor | null;
if (!actor) {
Logger.log("No actor available, can't resize safely yet");