diff options
author | Mike Blumenkrantz <m.blumenkran@samsung.com> | 2013-07-02 10:20:57 +0100 |
---|---|---|
committer | Mike Blumenkrantz <m.blumenkran@samsung.com> | 2013-07-02 10:20:57 +0100 |
commit | 736a4ebf5778d44086a5619c27839b012b55ddb4 (patch) | |
tree | a0e1b039bb8ce2309a87a47261ffaf6a01d7878c /src/tests | |
parent | 39678e3136f4a7d79ae2b7a228fc88c189458849 (diff) | |
download | enlightenment-736a4ebf5778d44086a5619c27839b012b55ddb4.tar.gz |
add simple test app for modal window race conditions
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/modal.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/modal.c b/src/tests/modal.c new file mode 100644 index 0000000000..bb35fa0a45 --- /dev/null +++ b/src/tests/modal.c @@ -0,0 +1,21 @@ +#include <Ecore_X.h> + +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; +} |