summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-10-01 10:34:20 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-10-01 10:34:20 +0100
commit15663e51f428f74d38f91ba61dcb1853070ea695 (patch)
tree16b5671ee7746b1cd06c50bc0665e4253848f39d /src/tests
parent38e3969e72c88c4cf438c7537c37a72cae7344a4 (diff)
add test for fullscreen overrides
current status: FAIL
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/override_fullscreen.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/tests/override_fullscreen.c b/src/tests/override_fullscreen.c
new file mode 100644
index 000000000..331119b79
--- /dev/null
+++ b/src/tests/override_fullscreen.c
@@ -0,0 +1,31 @@
1#include <Ecore_X.h>
2
3static Ecore_X_Window a = 0;
4
5static Eina_Bool
6test_state(void *d EINA_UNUSED)
7{
8 int w, h;
9
10 ecore_x_window_geometry_get(a, NULL, NULL, &w, &h);
11 if ((w == 100) || (h == 100))
12 fprintf(stderr, "FAIL\n");
13 return EINA_FALSE;
14}
15
16int
17main(void)
18{
19
20
21 ecore_x_init(NULL);
22
23 a = ecore_x_window_override_new(0, 0, 0, 100, 100);
24 ecore_x_window_show(a);
25 ecore_x_netwm_state_request_send(a, 0,
26 ECORE_X_WINDOW_STATE_FULLSCREEN, -1, 1);
27 ecore_x_icccm_name_class_set(a, "override_fullscreen", "test");
28 ecore_timer_add(1.0, test_state, NULL);
29 ecore_main_loop_begin();
30 return 0;
31}