Skip to content

Commit 04e29ac

Browse files
committed
test: add examples/winprops.js fixture (legacy imports.* style documentation)
1 parent e09f65d commit 04e29ac

File tree

1 file changed

+16
-0
lines changed
  • tests/fixtures/examples-exclusion@test/examples

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Example: customize window properties for PaperWM
2+
// This file uses the old imports.* API for GNOME 44 compatibility.
3+
// It is NOT part of the extension runtime.
4+
const GLib = imports.gi.GLib;
5+
const Meta = imports.gi.Meta;
6+
const Shell = imports.gi.Shell;
7+
const St = imports.ui.st;
8+
9+
// Example: make terminal windows always float
10+
function init(ext) {
11+
ext.winprops.forEach(function(p) {
12+
if (p.wm_class === "Alacritty") {
13+
p.float = true;
14+
}
15+
});
16+
}

0 commit comments

Comments
 (0)