aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_xtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_xtest.c')
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_xtest.c92
1 files changed, 46 insertions, 46 deletions
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_xtest.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_xtest.c
index 16acabb994..b664dc91e1 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_xtest.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_xtest.c
@@ -7,8 +7,8 @@
/* local variables */
static Eina_Bool _test_avail = EINA_FALSE;
-void
-_ecore_xcb_xtest_init(void)
+void
+_ecore_xcb_xtest_init(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -17,8 +17,8 @@ _ecore_xcb_xtest_init(void)
#endif
}
-void
-_ecore_xcb_xtest_finalize(void)
+void
+_ecore_xcb_xtest_finalize(void)
{
#ifdef ECORE_XCB_XTEST
const xcb_query_extension_reply_t *ext_reply;
@@ -28,16 +28,16 @@ _ecore_xcb_xtest_finalize(void)
#ifdef ECORE_XCB_XTEST
ext_reply = xcb_get_extension_data(_ecore_xcb_conn, &xcb_test_id);
- if ((ext_reply) && (ext_reply->present))
+ if ((ext_reply) && (ext_reply->present))
_test_avail = EINA_TRUE;
#endif
}
-EAPI Eina_Bool
+EAPI Eina_Bool
#ifdef ECORE_XCB_XTEST
-ecore_x_test_fake_key_down(const char *key)
+ecore_x_test_fake_key_down(const char *key)
#else
-ecore_x_test_fake_key_down(const char *key __UNUSED__)
+ecore_x_test_fake_key_down(const char *key __UNUSED__)
#endif
{
#ifdef ECORE_XCB_XTEST
@@ -55,12 +55,12 @@ ecore_x_test_fake_key_down(const char *key __UNUSED__)
keycode = _ecore_xcb_keymap_string_to_keycode(key);
if (keycode == XCB_NO_SYMBOL) return EINA_FALSE;
- cookie =
- xcb_test_fake_input(_ecore_xcb_conn, XCB_KEY_PRESS,
- keycode, XCB_CURRENT_TIME,
+ cookie =
+ xcb_test_fake_input(_ecore_xcb_conn, XCB_KEY_PRESS,
+ keycode, XCB_CURRENT_TIME,
((xcb_screen_t *)_ecore_xcb_screen)->root, 0, 0, 0);
err = xcb_request_check(_ecore_xcb_conn, cookie);
- if (err)
+ if (err)
{
free(err);
return EINA_FALSE;
@@ -71,11 +71,11 @@ ecore_x_test_fake_key_down(const char *key __UNUSED__)
return EINA_FALSE;
}
-EAPI Eina_Bool
+EAPI Eina_Bool
#ifdef ECORE_XCB_XTEST
-ecore_x_test_fake_key_up(const char *key)
+ecore_x_test_fake_key_up(const char *key)
#else
-ecore_x_test_fake_key_up(const char *key __UNUSED__)
+ecore_x_test_fake_key_up(const char *key __UNUSED__)
#endif
{
#ifdef ECORE_XCB_XTEST
@@ -93,12 +93,12 @@ ecore_x_test_fake_key_up(const char *key __UNUSED__)
keycode = _ecore_xcb_keymap_string_to_keycode(key);
if (keycode == XCB_NO_SYMBOL) return EINA_FALSE;
- cookie =
- xcb_test_fake_input(_ecore_xcb_conn, XCB_KEY_RELEASE,
- keycode, XCB_CURRENT_TIME,
+ cookie =
+ xcb_test_fake_input(_ecore_xcb_conn, XCB_KEY_RELEASE,
+ keycode, XCB_CURRENT_TIME,
((xcb_screen_t *)_ecore_xcb_screen)->root, 0, 0, 0);
err = xcb_request_check(_ecore_xcb_conn, cookie);
- if (err)
+ if (err)
{
free(err);
return EINA_FALSE;
@@ -109,11 +109,11 @@ ecore_x_test_fake_key_up(const char *key __UNUSED__)
return EINA_FALSE;
}
-EAPI Eina_Bool
+EAPI Eina_Bool
#ifdef ECORE_XCB_XTEST
-ecore_x_test_fake_key_press(const char *key)
+ecore_x_test_fake_key_press(const char *key)
#else
-ecore_x_test_fake_key_press(const char *key __UNUSED__)
+ecore_x_test_fake_key_press(const char *key __UNUSED__)
#endif
{
#ifdef ECORE_XCB_XTEST
@@ -133,22 +133,22 @@ ecore_x_test_fake_key_press(const char *key __UNUSED__)
#ifdef ECORE_XCB_XTEST
keycode = _ecore_xcb_keymap_string_to_keycode(key);
keysym = _ecore_xcb_keymap_keycode_to_keysym(keycode, 0);
- if (keysym == XCB_NO_SYMBOL)
+ if (keysym == XCB_NO_SYMBOL)
{
keysym = _ecore_xcb_keymap_keycode_to_keysym(keycode, 1);
if (keysym != XCB_NO_SYMBOL)
shift = EINA_TRUE;
}
- if (shift)
+ if (shift)
{
xcb_keycode_t *keycodes;
int i = 0;
keycodes = _ecore_xcb_keymap_keysym_to_keycode(XK_Shift_L);
- while (keycodes[i] != XCB_NO_SYMBOL)
+ while (keycodes[i] != XCB_NO_SYMBOL)
{
- if (keycodes[i] != 0)
+ if (keycodes[i] != 0)
{
shift_code = keycodes[i];
break;
@@ -157,51 +157,51 @@ ecore_x_test_fake_key_press(const char *key __UNUSED__)
}
}
- if (shift)
+ if (shift)
{
- cookie =
- xcb_test_fake_input(_ecore_xcb_conn, XCB_KEY_PRESS,
- shift_code, XCB_CURRENT_TIME,
- ((xcb_screen_t *)_ecore_xcb_screen)->root,
+ cookie =
+ xcb_test_fake_input(_ecore_xcb_conn, XCB_KEY_PRESS,
+ shift_code, XCB_CURRENT_TIME,
+ ((xcb_screen_t *)_ecore_xcb_screen)->root,
0, 0, 0);
err = xcb_request_check(_ecore_xcb_conn, cookie);
- if (err)
+ if (err)
{
free(err);
return EINA_FALSE;
}
}
- cookie =
- xcb_test_fake_input(_ecore_xcb_conn, XCB_KEY_PRESS,
- keycode, XCB_CURRENT_TIME,
+ cookie =
+ xcb_test_fake_input(_ecore_xcb_conn, XCB_KEY_PRESS,
+ keycode, XCB_CURRENT_TIME,
((xcb_screen_t *)_ecore_xcb_screen)->root, 0, 0, 0);
err = xcb_request_check(_ecore_xcb_conn, cookie);
- if (err)
+ if (err)
{
free(err);
return EINA_FALSE;
}
- cookie =
- xcb_test_fake_input(_ecore_xcb_conn, XCB_KEY_RELEASE,
- keycode, XCB_CURRENT_TIME,
+ cookie =
+ xcb_test_fake_input(_ecore_xcb_conn, XCB_KEY_RELEASE,
+ keycode, XCB_CURRENT_TIME,
((xcb_screen_t *)_ecore_xcb_screen)->root, 0, 0, 0);
err = xcb_request_check(_ecore_xcb_conn, cookie);
- if (err)
+ if (err)
{
free(err);
return EINA_FALSE;
}
- if (shift)
+ if (shift)
{
- cookie =
- xcb_test_fake_input(_ecore_xcb_conn, XCB_KEY_RELEASE,
- shift_code, XCB_CURRENT_TIME,
- ((xcb_screen_t *)_ecore_xcb_screen)->root,
+ cookie =
+ xcb_test_fake_input(_ecore_xcb_conn, XCB_KEY_RELEASE,
+ shift_code, XCB_CURRENT_TIME,
+ ((xcb_screen_t *)_ecore_xcb_screen)->root,
0, 0, 0);
err = xcb_request_check(_ecore_xcb_conn, cookie);
- if (err)
+ if (err)
{
free(err);
return EINA_FALSE;