summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2017-12-13 12:55:57 +0800
committerJonas Ådahl <jadahl@gmail.com>2018-02-23 18:57:36 +0800
commitdbf56e24cb7b20c40d081618ca0b49fe18f7260d (patch)
tree25bbe68bc676c82356481716b1e3b96d7cdc92d1
parent0371897e222d67e627ad97204e2d33ec543a672b (diff)
downloadmutter-dbf56e24cb7b20c40d081618ca0b49fe18f7260d.tar.gz
wayland/xdg-shell: Minor cosmetic cleanups
https://gitlab.gnome.org/GNOME/mutter/merge_requests/5 https://bugzilla.gnome.org/show_bug.cgi?id=791938
-rw-r--r--src/wayland/meta-wayland-xdg-shell.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/wayland/meta-wayland-xdg-shell.c b/src/wayland/meta-wayland-xdg-shell.c
index 23502209a..0fe5c2845 100644
--- a/src/wayland/meta-wayland-xdg-shell.c
+++ b/src/wayland/meta-wayland-xdg-shell.c
@@ -248,7 +248,7 @@ xdg_toplevel_move (struct wl_client *client,
{
MetaWaylandSeat *seat = wl_resource_get_user_data (seat_resource);
MetaWaylandSurface *surface = surface_from_xdg_toplevel_resource (resource);
- gfloat x, y;
+ float x, y;
if (!meta_wayland_seat_get_grab_info (seat, surface, serial, TRUE, &x, &y))
return;
@@ -491,7 +491,8 @@ handle_popup_parent_destroyed (struct wl_listener *listener,
}
static void
-fill_states (struct wl_array *states, MetaWindow *window)
+fill_states (struct wl_array *states,
+ MetaWindow *window)
{
uint32_t *s;
@@ -620,7 +621,8 @@ meta_wayland_xdg_toplevel_commit (MetaWaylandSurfaceRole *surface_role,
}
else if (pending->dx != 0 || pending->dx != 0)
{
- g_warning ("XXX: Attach-initiated move without a new geometry. This is unimplemented right now.");
+ g_warning ("XXX: Attach-initiated move without a new geometry. "
+ "This is unimplemented right now.");
}
/* When we get to this point, we ought to have valid size hints */
@@ -1375,7 +1377,7 @@ meta_wayland_xdg_surface_set_property (GObject *object,
}
static void
-meta_wayland_xdg_surface_get_property (GObject *object,
+meta_wayland_xdg_surface_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec)
@@ -1917,8 +1919,8 @@ xdg_shell_destructor (struct wl_resource *resource)
static void
bind_xdg_shell (struct wl_client *client,
void *data,
- guint32 version,
- guint32 id)
+ uint32_t version,
+ uint32_t id)
{
MetaWaylandXdgShellClient *shell_client;