[Spice-devel] vdagent: Spelling and case fixes in comments
Francois Gouget
fgouget at codeweavers.com
Fri Apr 7 08:19:54 UTC 2017
Use the official case for Xfce.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
src/vdagent/vdagent.c | 2 +-
src/vdagent/x11-priv.h | 2 +-
src/vdagent/x11-randr.c | 6 +++---
src/vdagent/x11.c | 10 +++++-----
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/vdagent/vdagent.c b/src/vdagent/vdagent.c
index 3d195b1..6f025e8 100644
--- a/src/vdagent/vdagent.c
+++ b/src/vdagent/vdagent.c
@@ -182,7 +182,7 @@ static void quit_handler(int sig)
wait to make sure the X connection worked. We wait up
to 10 seconds to get an 'all clear' from the child
before we exit. If we don't, we're able to exit with a
- status that indicates an error occured */
+ status that indicates an error occurred */
static void wait_and_exit(int s)
{
char buf[4];
diff --git a/src/vdagent/x11-priv.h b/src/vdagent/x11-priv.h
index d60cc07..677a44d 100644
--- a/src/vdagent/x11-priv.h
+++ b/src/vdagent/x11-priv.h
@@ -37,7 +37,7 @@ struct vdagent_x11_selection_request {
struct vdagent_x11_selection_request *next;
};
-/* A conversion request is X11 speak for asking an other app to give its
+/* A conversion request is X11 speak for asking another app to give its
clipboard data to us, we do these on behalf of the spice client to copy
data from the guest to the client. Like selection requests we process
these one at a time. */
diff --git a/src/vdagent/x11-randr.c b/src/vdagent/x11-randr.c
index bc480fe..0809f16 100644
--- a/src/vdagent/x11-randr.c
+++ b/src/vdagent/x11-randr.c
@@ -236,7 +236,7 @@ static void delete_mode(struct vdagent_x11 *x11, int output_index,
vdagent_x11_restore_error_handler(x11);
}
- /* silly to update everytime for more then one monitor */
+ /* silly to update every time for more than one monitor */
update_randr_res(x11, 0);
}
@@ -333,7 +333,7 @@ static XRRModeInfo *create_new_mode(struct vdagent_x11 *x11, int output_index,
// ignore race error, if mode is created by others
vdagent_x11_restore_error_handler(x11);
- /* silly to update everytime for more then one monitor */
+ /* silly to update every time for more than one monitor */
update_randr_res(x11, 0);
return find_mode_by_name(x11, modename);
@@ -798,7 +798,7 @@ void vdagent_x11_set_monitor_config(struct vdagent_x11 *x11,
/* ... and disable the ones that would be bigger than
* the new RandR screen once it is resized. If they are enabled the
* XRRSetScreenSize call will fail with BadMatch. They will be
- * reenabled after hanging the screen size.
+ * re-enabled after hanging the screen size.
*/
for (i = 0; i < curr->num_of_monitors; ++i) {
int width, height;
diff --git a/src/vdagent/x11.c b/src/vdagent/x11.c
index 4dd1aa8..6e47ea1 100644
--- a/src/vdagent/x11.c
+++ b/src/vdagent/x11.c
@@ -123,7 +123,7 @@ static void vdagent_x11_get_wm_name(struct vdagent_x11 *x11)
this is when the display-manager (ie gdm) has set, and not cleared the
_NET_SUPPORTING_WM_CHECK property, and the window manager running in
the user session has not yet updated it to point to its window, so its
- pointing to a non existing window. */
+ pointing to a nonexistent window. */
vdagent_x11_set_error_handler(x11, vdagent_x11_ignore_bad_window_handler);
/* Get the window manager SUPPORTING_WM_CHECK window */
@@ -1111,7 +1111,7 @@ static void vdagent_x11_handle_property_delete_notify(struct vdagent_x11 *x11,
x11->selection_req_data_pos += len;
- /* Note we must explictly send a 0 sized XChangeProperty to signal the
+ /* Note we must explicitly send a 0 sized XChangeProperty to signal the
incr transfer is done. Hence we do not check if we've send all data
but instead check we've send the final 0 sized XChangeProperty. */
if (len == 0) {
@@ -1333,15 +1333,15 @@ void vdagent_x11_client_disconnected(struct vdagent_x11 *x11)
}
/* Function used to determine the default location to save file-xfers,
- xdg desktop dir or xdg download dir. We error on the save side and use a
- whitelist approach, so any unknown desktops will end up with saving
+ xdg desktop dir or xdg download dir. We err on the safe side and use a
+ whitelist approach, so any unknown desktop will end up with saving
file-xfers to the xdg download dir, and opening the xdg download dir with
xdg-open when the file-xfer completes. */
int vdagent_x11_has_icons_on_desktop(struct vdagent_x11 *x11)
{
const char * const wms_with_icons_on_desktop[] = {
"Metacity", /* GNOME-2 or GNOME-3 fallback */
- "Xfwm4", /* XFCE */
+ "Xfwm4", /* Xfce */
"Marco", /* Mate */
NULL
};
--
2.11.0
More information about the Spice-devel
mailing list