From 9bfb27f0a4753a8f51a0974f9578aa4bcf48ef6c Mon Sep 17 00:00:00 2001
From: PolyMeilex <marynczakbartlomiej@gmail.com>
Date: Fri, 3 May 2024 14:13:25 +0200
Subject: [PATCH] Fix some trivial typos
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fix typos in protocol files and in python code

Signed-off-by: Bartłomiej Maryńczak <marynczakbartlomiej@gmail.com>
---
 stable/linux-dmabuf/linux-dmabuf-v1.xml            | 2 +-
 stable/xdg-shell/xdg-shell.xml                     | 2 +-
 staging/drm-lease/drm-lease-v1.xml                 | 2 +-
 tests/replace.py                                   | 6 +++---
 unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/stable/linux-dmabuf/linux-dmabuf-v1.xml b/stable/linux-dmabuf/linux-dmabuf-v1.xml
index 38e06f5b..33ad9a94 100644
--- a/stable/linux-dmabuf/linux-dmabuf-v1.xml
+++ b/stable/linux-dmabuf/linux-dmabuf-v1.xml
@@ -378,7 +378,7 @@
             of planes and the format, bad format, non-positive width or
             height, or bad offset or stride.
           - INVALID_WL_BUFFER, in case the cause for failure is unknown or
-            plaform specific.
+            platform specific.
         - the server creates an invalid wl_buffer, marks it as failed and
           sends a 'failed' event to the client. The result of using this
           invalid wl_buffer as an argument in any request by the client is
diff --git a/stable/xdg-shell/xdg-shell.xml b/stable/xdg-shell/xdg-shell.xml
index 9ef284e5..9201f344 100644
--- a/stable/xdg-shell/xdg-shell.xml
+++ b/stable/xdg-shell/xdg-shell.xml
@@ -635,7 +635,7 @@
       attributes (e.g. title, state, stacking, ...) are discarded for
       an xdg_toplevel surface when it is unmapped. The xdg_toplevel returns to
       the state it had right after xdg_surface.get_toplevel. The client
-      can re-map the toplevel by perfoming a commit without any buffer
+      can re-map the toplevel by performing a commit without any buffer
       attached, waiting for a configure event and handling it as usual (see
       xdg_surface description).
 
diff --git a/staging/drm-lease/drm-lease-v1.xml b/staging/drm-lease/drm-lease-v1.xml
index c90f6ea7..7d60804d 100644
--- a/staging/drm-lease/drm-lease-v1.xml
+++ b/staging/drm-lease/drm-lease-v1.xml
@@ -245,7 +245,7 @@
       <description summary="submit the lease request">
         Submits the lease request and creates a new wp_drm_lease_v1 object.
         After calling submit the compositor will immediately destroy this
-        object, issuing any more requests will cause a wl_diplay error.
+        object, issuing any more requests will cause a wl_display error.
         The compositor doesn't make any guarantees about the events of the
         lease object, clients cannot expect an immediate response.
         Not requesting any connectors before submitting the lease request
diff --git a/tests/replace.py b/tests/replace.py
index 0ab7dfda..6ba2c2fc 100755
--- a/tests/replace.py
+++ b/tests/replace.py
@@ -4,10 +4,10 @@ import sys
 
 execpath, inpath, outpath, *dict_list = sys.argv
 
-dictonary = {}
+dictionary = {}
 while dict_list:
     key, value, *rest = dict_list
-    dictonary[key] = value
+    dictionary[key] = value
     dict_list = rest
 
 infile = open(inpath, 'r')
@@ -16,7 +16,7 @@ outfile = open(outpath, 'w')
 buf = infile.read()
 infile.close()
 
-for key, value in dictonary.items():
+for key, value in dictionary.items():
     buf = buf.replace('@{}@'.format(key), value)
 
 outfile.write(buf)
diff --git a/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml b/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml
index 9787ad3d..6f11e925 100644
--- a/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml
+++ b/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml
@@ -382,7 +382,7 @@
             of planes and the format, bad format, non-positive width or
             height, or bad offset or stride.
           - INVALID_WL_BUFFER, in case the cause for failure is unknown or
-            plaform specific.
+            platform specific.
         - the server creates an invalid wl_buffer, marks it as failed and
           sends a 'failed' event to the client. The result of using this
           invalid wl_buffer as an argument in any request by the client is
-- 
GitLab