From e4c3554c22f062e34e51b3bf33d4b1b9c556485d Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 1 May 2016 19:36:53 +0200 Subject: [PATCH] tests/_client.lua: Don't use GtkApplication GtkApplication does magic like ensuring that the application ID is unique and there is only a single instance of each application running. We don't want nor need that for the tests. Signed-off-by: Uli Schlachter --- tests/_client.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/_client.lua b/tests/_client.lua index cb1b8ad0..9a94fd4b 100644 --- a/tests/_client.lua +++ b/tests/_client.lua @@ -15,17 +15,12 @@ return function(class, title, use_sn) "local window = Gtk.Window {", " default_width = 100,", " default_height = 100,", + " on_destroy = Gtk.main_quit,", " title = '",title, "'};", "window:set_wmclass(class, class);", - "local app = Gtk.Application {", - " application_id = 'org.awesomewm.tests.",class, - "'};", - "function app:on_activate()", - " window.application = self;", - " window:show_all();", - "end;", - "app:run {''}" + "window:show_all();", + "Gtk:main{...}" }} return spawn(cmd, use_sn)