Skip to content

Commit 3a3062b

Browse files
committed
tests: use X11 Gdk backend in dummy app
1 parent a1b8e90 commit 3a3062b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/dummy-app.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66

77
'use strict';
88

9+
imports.gi.versions.Gdk = '4.0';
910
imports.gi.versions.Gtk = '4.0';
1011

11-
const { GObject, Gio, Gtk } = imports.gi;
12+
const { GObject, Gio, Gdk, Gtk } = imports.gi;
1213

1314
const System = imports.system;
1415

@@ -19,6 +20,8 @@ const Application = GObject.registerClass({
1920

2021
this.connect('startup', this.startup.bind(this));
2122
this.connect('activate', this.activate.bind(this));
23+
24+
Gdk.set_allowed_backends('x11');
2225
}
2326

2427
startup() {

0 commit comments

Comments
 (0)