Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 30c1a12cda | |||
| 75f2f107de | |||
| 42d680d00c |
@@ -0,0 +1 @@
|
||||
25
|
||||
@@ -8,7 +8,7 @@ packages:
|
||||
|
||||
build: packages && build-schemas
|
||||
rm -rf dist/*
|
||||
pnpm exec tsc
|
||||
pnpm run build
|
||||
cp metadata.json dist/
|
||||
cp stylesheet.css dist/
|
||||
mkdir -p dist/schemas
|
||||
@@ -47,6 +47,12 @@ test-coverage:
|
||||
ci-local:
|
||||
act -W .gitea/workflows/build.yaml
|
||||
|
||||
lint:
|
||||
pnpm run lint
|
||||
|
||||
clean:
|
||||
pnpm run clean
|
||||
|
||||
#pack: build
|
||||
# gnome-extensions pack dist \
|
||||
# --force \
|
||||
|
||||
+4
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "aerospike",
|
||||
"version": "0.2.1",
|
||||
"version": "0.2.2",
|
||||
"description": "Simple, Opinionated Tiling Window Manager for Gnome written in Typescript",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
@@ -16,6 +16,9 @@
|
||||
"homepage": "https://github.com/lucasoskorep/aerospike-gnome/#readme",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"clean": "rm -rf dist/*",
|
||||
"lint": "eslint .",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch",
|
||||
"test:coverage": "jest --coverage"
|
||||
|
||||
Generated
+674
-523
File diff suppressed because it is too large
Load Diff
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user