aboutsummaryrefslogtreecommitdiff
path: root/nxcompshad
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-09-19 00:11:05 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-09-29 17:17:06 +0200
commit085f8a4f672ed3e167bdd7791835f7ab2bebb723 (patch)
tree619edfb91b22fe9e604b115b6f88616e942709f9 /nxcompshad
parent506378cf2134c5c4b36f0441100ab806307fd832 (diff)
downloadnx-libs-085f8a4f672ed3e167bdd7791835f7ab2bebb723.tar.gz
nx-libs-085f8a4f672ed3e167bdd7791835f7ab2bebb723.tar.bz2
nx-libs-085f8a4f672ed3e167bdd7791835f7ab2bebb723.zip
nxcompshad: delete trailing whitespace
Diffstat (limited to 'nxcompshad')
-rw-r--r--nxcompshad/src/Core.cpp2
-rw-r--r--nxcompshad/src/X11.cpp14
2 files changed, 8 insertions, 8 deletions
diff --git a/nxcompshad/src/Core.cpp b/nxcompshad/src/Core.cpp
index c5084e884..99ecce82f 100644
--- a/nxcompshad/src/Core.cpp
+++ b/nxcompshad/src/Core.cpp
@@ -216,7 +216,7 @@ int CorePoller::isChanged(int (*checkIfInputCallback)(void *), void *arg, int *s
// In order to allow this function to
// be suspended and resumed later, we
// need to save these two status vars.
- //
+ //
static int idxIlace = 0;
static int curLine = 0;
diff --git a/nxcompshad/src/X11.cpp b/nxcompshad/src/X11.cpp
index 7a84b7340..9ad43101f 100644
--- a/nxcompshad/src/X11.cpp
+++ b/nxcompshad/src/X11.cpp
@@ -236,7 +236,7 @@ char *Poller::getRect(XRectangle r)
else
{
image_ -> width = r.width;
- image_ -> height = r.height;
+ image_ -> height = r.height;
image_ -> bytes_per_line = ROUNDUP((image_ -> bits_per_pixel * image_ -> width), image_ -> bitmap_pad);
@@ -1155,11 +1155,11 @@ SendKeycode:
if (XKeysymToKeycode(event -> xkey.display, XK_A) != keycode)
{
KeySym keysym = XKeycodeToKeysym(event -> xkey.display, event -> xkey.keycode, 0);
-
+
if (keysym == XK_Mode_switch || keysym == XK_ISO_Level3_Shift)
{
logUser("Poller::handleKeyboardEvent: keysym [%x].\n", (unsigned int)keysym);
-
+
if (XKeycodeToKeysym(display_, 113, 0) == XK_ISO_Level3_Shift ||
(XKeycodeToKeysym(display_, 124, 0) == XK_ISO_Level3_Shift))
{
@@ -1169,7 +1169,7 @@ SendKeycode:
{
event -> xkey.keycode = XKeysymToKeycode(display_, XK_Mode_switch);
}
-
+
logUser("Poller::handleKeyboardEvent: keycode translated to [%x].\n", (unsigned int)event -> xkey.keycode);
}
else
@@ -1503,7 +1503,7 @@ void Poller::updateDamagedAreas(void)
int i;
int y;
-
+
for (i = 0; i < lastUpdatedRegion_ -> numRects; i++)
{
boxPtr = lastUpdatedRegion_ -> rects + i;
@@ -1515,7 +1515,7 @@ void Poller::updateDamagedAreas(void)
image_ -> bytes_per_line =
ROUNDUP((image_ -> bits_per_pixel * image_ -> width),
image_ -> bitmap_pad);
-
+
if (XShmGetImage(display_, DefaultRootWindow(display_), image_,
boxPtr -> x1, boxPtr -> y1, AllPlanes) == 0)
{
@@ -1554,7 +1554,7 @@ void Poller::updateDamagedAreas(void)
{
update(image_ -> data + y * image_ -> bytes_per_line, rectangle);
- rectangle.y++;
+ rectangle.y++;
}
if (shmExtension_ != 1)