Commit 3403692f authored by Peter Hutterer's avatar Peter Hutterer

tools: when running the test suite, start the debug-gui minimized

This allows us to run the option parsing test without getting interrupted by a
million debug-gui windows popping up for half a second.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 58d8344d
......@@ -809,6 +809,8 @@ window_init(struct window *w)
list_init(&w->evdev_devices);
w->win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
if (getenv("LIBINPUT_RUNNING_TEST_SUITE"))
gtk_window_iconify(GTK_WINDOW(w->win));
gtk_widget_set_events(w->win, 0);
gtk_window_set_title(GTK_WINDOW(w->win), "libinput debugging tool");
gtk_window_set_default_size(GTK_WINDOW(w->win), 1024, 768);
......
......@@ -354,6 +354,8 @@ def main():
args += ['@MESON_BUILD_ROOT@']
os.environ['LIBINPUT_RUNNING_TEST_SUITE'] = '1'
return subprocess.run([sys.executable] + args).returncode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment