xf86-video-nested: .gitignore README src/nested_input.c src/nested_input.h src/xlibclient.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 20 23:28:03 UTC 2025
.gitignore | 4 ++--
README | 2 +-
src/nested_input.c | 10 +++++-----
src/nested_input.h | 2 +-
src/xlibclient.c | 12 ++++++------
5 files changed, 15 insertions(+), 15 deletions(-)
New commits:
commit d960db8fd98f78f338145c81d757fc6a5634ec81
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Wed Aug 20 16:23:58 2025 -0700
Strip trailing whitespace from source files
Performed with: `git ls-files | xargs perl -i -p -e 's{[ \t]+$}{}'`
`git diff -w` & `git diff -b` show no diffs from this change
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nested/-/merge_requests/8>
diff --git a/.gitignore b/.gitignore
index bd9d35e..a96193f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -71,8 +71,8 @@ core
*.tar.bz2
*.tar.gz
#
-# Add & Override patterns for xf86-video-nested
+# Add & Override patterns for xf86-video-nested
#
# Edit the following section as needed
# For example, !report.pc overrides *.pc. See 'man gitignore'
-#
+#
diff --git a/README b/README
index 12a2fc6..e2b7cbb 100644
--- a/README
+++ b/README
@@ -39,7 +39,7 @@ Section "ServerLayout"
EndSection
-- end xorg.conf --
-Mouse and keyboard input events from the client window are forwarded to the nested
+Mouse and keyboard input events from the client window are forwarded to the nested
xserver, so no mouse/keyboard drivers are needed.
You can also have more than one screen with this driver. Here's an example of a
diff --git a/src/nested_input.c b/src/nested_input.c
index 7d84cbd..6f83ae2 100644
--- a/src/nested_input.c
+++ b/src/nested_input.c
@@ -222,7 +222,7 @@ _nested_input_init_axes(DeviceIntPtr device) {
xf86InitValuatorDefaults(device, i);
}
- return Success;
+ return Success;
}
static CARD32
@@ -240,7 +240,7 @@ nested_input_on(OsTimerPtr timer, CARD32 time, pointer arg) {
return 0;
}
-static int
+static int
NestedInputControl(DeviceIntPtr device, int what) {
int err;
InputInfoPtr pInfo = device->public.devicePrivate;
@@ -262,7 +262,7 @@ NestedInputControl(DeviceIntPtr device, int what) {
break;
case DEVICE_ON:
xf86Msg(X_INFO, "%s: On.\n", pInfo->name);
-
+
if (device->public.on)
break;
@@ -294,7 +294,7 @@ nested_input_ready(OsTimerPtr timer, CARD32 time, pointer arg) {
return 0;
}
-static void
+static void
NestedInputReadInput(InputInfoPtr pInfo) {
NestedInputDevicePtr pNestedInput = pInfo->private;
TimerSet(NULL, 0, 1, nested_input_ready, pNestedInput->clientData);
@@ -307,7 +307,7 @@ NestedInputLoadDriver(NestedClientPrivatePtr clientData) {
InputInfoPtr pInfo;
NestedInputDevicePtr pNestedInput;
- // Create input options for our invocation to NewInputDeviceRequest.
+ // Create input options for our invocation to NewInputDeviceRequest.
InputOption* options = NULL;
options = input_option_new(options, strdup("identifier"), strdup("nestedinput"));
options = input_option_new(options, strdup("driver"), strdup("nestedinput"));
diff --git a/src/nested_input.h b/src/nested_input.h
index 58002d6..0a1fa2e 100644
--- a/src/nested_input.h
+++ b/src/nested_input.h
@@ -47,5 +47,5 @@ void
NestedInputPostMouseMotionEvent(DeviceIntPtr dev, int x, int y);
void
NestedInputPostButtonEvent(DeviceIntPtr dev, int button, int isDown);
-void
+void
NestedInputPostKeyboardEvent(DeviceIntPtr dev, unsigned int keycode, int isDown);
diff --git a/src/xlibclient.c b/src/xlibclient.c
index 89bd2d7..99e9367 100644
--- a/src/xlibclient.c
+++ b/src/xlibclient.c
@@ -206,10 +206,10 @@ NestedClientCreateScreen(int scrnIndex,
snprintf(windowTitle, sizeof(windowTitle), "Screen %d", scrnIndex);
XStoreName(pPriv->display, pPriv->window, windowTitle);
-
+
XMapWindow(pPriv->display, pPriv->window);
- XSelectInput(pPriv->display, pPriv->window, ExposureMask |
+ XSelectInput(pPriv->display, pPriv->window, ExposureMask |
PointerMotionMask | EnterWindowMask | LeaveWindowMask |
ButtonPressMask | ButtonReleaseMask | KeyPressMask |
KeyReleaseMask);
@@ -261,9 +261,9 @@ xf86DrvMsg(scrnIndex, X_INFO, "blu_mask: 0x%lx\n", pPriv->img->blue_mask);
break;
}
}
-
+
pPriv->dev = (DeviceIntPtr)NULL;
-
+
return pPriv;
bail:
@@ -321,9 +321,9 @@ NestedClientCheckEvents(NestedClientPrivatePtr pPriv) {
NestedClientUpdateScreen(pPriv,
((XExposeEvent*)&ev)->x,
((XExposeEvent*)&ev)->y,
- ((XExposeEvent*)&ev)->x +
+ ((XExposeEvent*)&ev)->x +
((XExposeEvent*)&ev)->width,
- ((XExposeEvent*)&ev)->y +
+ ((XExposeEvent*)&ev)->y +
((XExposeEvent*)&ev)->height);
break;
More information about the xorg-commit
mailing list