summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-07-02 10:20:57 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-07-02 10:20:57 +0100
commit736a4ebf5778d44086a5619c27839b012b55ddb4 (patch)
treea0e1b039bb8ce2309a87a47261ffaf6a01d7878c /src/tests
parent39678e3136f4a7d79ae2b7a228fc88c189458849 (diff)
add simple test app for modal window race conditions
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/modal.c21
1 files changed, 21 insertions, 0 deletions
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 @@
1#include <Ecore_X.h>
2
3int
4main(void)
5{
6 Ecore_X_Window a, b;
7
8 ecore_x_init(NULL);
9
10 a = ecore_x_window_new(0, 0, 0, 100, 100);
11 ecore_x_window_show(a);
12
13 b = ecore_x_window_new(0, 200, 200, 100, 100);
14 ecore_x_window_show(b);
15 ecore_x_icccm_transient_for_set(b, a);
16 ecore_x_netwm_state_request_send(b, 0,
17 ECORE_X_WINDOW_STATE_MODAL, -1, 1);
18 ecore_x_icccm_name_class_set(b, "modal", "test");
19 ecore_main_loop_begin();
20 return 0;
21}