aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/test/xtest.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-03-23 10:05:55 +0100
committermarha <marha@users.sourceforge.net>2012-03-23 10:05:55 +0100
commit0f834b91a4768673833ab4917e87d86c237bb1a6 (patch)
tree363489504ed4b2d360259b8de4c9e392918e5d02 /xorg-server/test/xtest.c
parentfc72edebf875378459368c5383d9023730cbca54 (diff)
downloadvcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.tar.gz
vcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.tar.bz2
vcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.zip
libX11 xserver fontconfig mesa pixman xkbcomp xkeyboard-config git update
23 Mar 2012
Diffstat (limited to 'xorg-server/test/xtest.c')
-rw-r--r--xorg-server/test/xtest.c27
1 files changed, 17 insertions, 10 deletions
diff --git a/xorg-server/test/xtest.c b/xorg-server/test/xtest.c
index 2ab46505f..aeca669d8 100644
--- a/xorg-server/test/xtest.c
+++ b/xorg-server/test/xtest.c
@@ -40,9 +40,14 @@
extern DeviceIntPtr xtestpointer, xtestkeyboard;
/* Needed for the screen setup, otherwise we crash during sprite initialization */
-static Bool device_cursor_init(DeviceIntPtr dev, ScreenPtr screen) { return TRUE; }
+static Bool
+device_cursor_init(DeviceIntPtr dev, ScreenPtr screen)
+{
+ return TRUE;
+}
-static void xtest_init_devices(void)
+static void
+xtest_init_devices(void)
{
ScreenRec screen;
@@ -68,8 +73,10 @@ static void xtest_init_devices(void)
assert(IsXTestDevice(xtestpointer, NULL));
assert(IsXTestDevice(xtestkeyboard, NULL));
assert(IsXTestDevice(xtestpointer, inputInfo.pointer));
+
assert(IsXTestDevice(xtestkeyboard, inputInfo.keyboard));
assert(GetXTestDevice(inputInfo.pointer) == xtestpointer);
+
assert(GetXTestDevice(inputInfo.keyboard) == xtestkeyboard);
}
@@ -77,7 +84,8 @@ static void xtest_init_devices(void)
* Each xtest devices has a property attached marking it. This property
* cannot be changed.
*/
-static void xtest_properties(void)
+static void
+xtest_properties(void)
{
int rc;
char value = 1;
@@ -93,21 +101,20 @@ static void xtest_properties(void)
assert(prop != NULL);
rc = XIChangeDeviceProperty(xtestpointer, xtest_prop,
- XA_INTEGER, 8, PropModeReplace, 1, &value, FALSE);
+ XA_INTEGER, 8, PropModeReplace, 1, &value,
+ FALSE);
assert(rc == BadAccess);
rc = XIChangeDeviceProperty(xtestkeyboard, xtest_prop,
- XA_INTEGER, 8, PropModeReplace, 1, &value, FALSE);
+ XA_INTEGER, 8, PropModeReplace, 1, &value,
+ FALSE);
assert(rc == BadAccess);
}
-
-
-int main(int argc, char** argv)
+int
+main(int argc, char **argv)
{
xtest_init_devices();
xtest_properties();
return 0;
}
-
-