[PATCH 03/18] dix: fix spelling mistakes

Eric Engestrom eric at engestrom.ch
Sat Apr 2 18:53:16 UTC 2016


Signed-off-by: Eric Engestrom <eric at engestrom.ch>
---
 dix/BuiltInAtoms | 2 +-
 dix/colormap.c   | 2 +-
 dix/events.c     | 2 +-
 dix/ptrveloc.c   | 4 ++--
 dix/touch.c      | 2 +-
 dix/window.c     | 6 +++---
 6 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/dix/BuiltInAtoms b/dix/BuiltInAtoms
index 910c627..7995940 100644
--- a/dix/BuiltInAtoms
+++ b/dix/BuiltInAtoms
@@ -195,7 +195,7 @@ WM_HINTS								      @
 			2		zoomed
 			3		iconic
 			4		inactive -> application believes
-				itself to be seldomly used. WM may wish to
+				itself to be seldom used. WM may wish to
 				place it on an inactive menu.
 		This type is potentially extensible. The order is critical;
 		append to the end only.
diff --git a/dix/colormap.c b/dix/colormap.c
index 12a85b2..3038707 100644
--- a/dix/colormap.c
+++ b/dix/colormap.c
@@ -1095,7 +1095,7 @@ AllocColor(ColormapPtr pmap,
 
 /*
  * FakeAllocColor -- fake an AllocColor request by
- * returning a free pixel if availible, otherwise returning
+ * returning a free pixel if available, otherwise returning
  * the closest matching pixel.  This is used by the mi
  * software sprite code to recolor cursors.  A nice side-effect
  * is that this routine will never return failure.
diff --git a/dix/events.c b/dix/events.c
index efaf91d..3c5a8ff 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -5375,7 +5375,7 @@ ProcSendEvent(ClientPtr client)
             return Success;
 
         /* If the input focus is PointerRootWin, send the event to where
-           the pointer is if possible, then perhaps propogate up to root. */
+           the pointer is if possible, then perhaps propagate up to root. */
         if (inputFocus == PointerRootWin)
             inputFocus = GetCurrentRootWindow(dev);
 
diff --git a/dix/ptrveloc.c b/dix/ptrveloc.c
index e75300a..0d4ef86 100644
--- a/dix/ptrveloc.c
+++ b/dix/ptrveloc.c
@@ -591,7 +591,7 @@ CalcTracker(const MotionTracker * tracker, int cur_t)
 /* find the most plausible velocity. That is, the most distant
  * (in time) tracker which isn't too old, the movement vector was
  * in the same octant, and where the velocity is within an
- * acceptable range to the inital velocity.
+ * acceptable range to the initial velocity.
  *
  * @return The tracker's velocity or 0 if the above conditions are unmet
  */
@@ -854,7 +854,7 @@ PowerProfile(DeviceIntPtr dev,
 {
     double vel_dist;
 
-    acc = (acc - 1.0) * 0.1f + 1.0;     /* without this, acc of 2 is unuseable */
+    acc = (acc - 1.0) * 0.1f + 1.0;     /* without this, acc of 2 is unusable */
 
     if (velocity <= threshold)
         return vel->min_acceleration;
diff --git a/dix/touch.c b/dix/touch.c
index 54da132..744c4e6 100644
--- a/dix/touch.c
+++ b/dix/touch.c
@@ -608,7 +608,7 @@ TouchBuildSprite(DeviceIntPtr sourcedev, TouchPointInfoPtr ti,
  * @param[in] button_event The respective button event (if any)
  *
  * @returns The number of converted events.
- * @retval 0 An error occured
+ * @retval 0 An error occurred
  * @retval 1 only the motion event is valid
  * @retval 2 motion and button event are valid
  */
diff --git a/dix/window.c b/dix/window.c
index ead4dc2..6bee433 100644
--- a/dix/window.c
+++ b/dix/window.c
@@ -458,7 +458,7 @@ TraverseTree(WindowPtr pWin, VisitWindowProcPtr func, void *data)
  * WalkTree
  *   Walk the window tree, for SCREEN, preforming FUNC(pWin, data) on
  *   each window.  If FUNC returns WT_WALKCHILDREN, traverse the children,
- *   if it returns WT_DONTWALKCHILDREN, dont.  If it returns WT_STOPWALKING
+ *   if it returns WT_DONTWALKCHILDREN, don't.  If it returns WT_STOPWALKING
  *   exit WalkTree.  Does depth-first traverse.
  *****/
 
@@ -2285,7 +2285,7 @@ ConfigureWindow(WindowPtr pWin, Mask mask, XID *vlist, ClientPtr client)
     if (!pParent)
         return Success;
 
-    /* Figure out if the window should be moved.  Doesnt
+    /* Figure out if the window should be moved.  Doesn't
        make the changes to the window if event sent */
 
     if (mask & CWStackMode)
@@ -2558,7 +2558,7 @@ ReparentWindow(WindowPtr pWin, WindowPtr pParent,
     if (pWin->prevSib)
         pWin->prevSib->nextSib = pWin->nextSib;
 
-    /* insert at begining of pParent */
+    /* insert at beginning of pParent */
     pWin->parent = pParent;
     pPrev = RealChildHead(pParent);
     if (pPrev) {
-- 
2.8.0



More information about the xorg-devel mailing list