From 736a4ebf5778d44086a5619c27839b012b55ddb4 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 2 Jul 2013 10:20:57 +0100 Subject: [PATCH] add simple test app for modal window race conditions --- src/tests/modal.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/tests/modal.c diff --git a/src/tests/modal.c b/src/tests/modal.c new file mode 100644 index 000000000..bb35fa0a4 --- /dev/null +++ b/src/tests/modal.c @@ -0,0 +1,21 @@ +#include + +int +main(void) +{ + Ecore_X_Window a, b; + + ecore_x_init(NULL); + + a = ecore_x_window_new(0, 0, 0, 100, 100); + ecore_x_window_show(a); + + b = ecore_x_window_new(0, 200, 200, 100, 100); + ecore_x_window_show(b); + ecore_x_icccm_transient_for_set(b, a); + ecore_x_netwm_state_request_send(b, 0, + ECORE_X_WINDOW_STATE_MODAL, -1, 1); + ecore_x_icccm_name_class_set(b, "modal", "test"); + ecore_main_loop_begin(); + return 0; +}