[metacity] surface: reorder code
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] surface: reorder code
- Date: Fri, 11 Oct 2019 22:03:56 +0000 (UTC)
commit 84628ed6c7c3bf612b0696430ce49c58bf95332e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Oct 11 22:40:18 2019 +0300
surface: reorder code
src/compositor/meta-surface.c | 40 ++++++++++++++++++++--------------------
src/compositor/meta-surface.h | 4 ++--
2 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/src/compositor/meta-surface.c b/src/compositor/meta-surface.c
index 5e0698d5..e3c7f2ca 100644
--- a/src/compositor/meta-surface.c
+++ b/src/compositor/meta-surface.c
@@ -360,6 +360,26 @@ meta_surface_process_damage (MetaSurface *self,
meta_compositor_queue_redraw (priv->compositor);
}
+void
+meta_surface_sync_geometry (MetaSurface *self)
+{
+ MetaSurfacePrivate *priv;
+ MetaRectangle rect;
+
+ priv = meta_surface_get_instance_private (self);
+
+ meta_window_get_input_rect (priv->window, &rect);
+
+ if (priv->width != rect.width ||
+ priv->height != rect.height)
+ {
+ free_pixmap (self);
+
+ priv->width = rect.width;
+ priv->height = rect.height;
+ }
+}
+
void
meta_surface_pre_paint (MetaSurface *self)
{
@@ -390,23 +410,3 @@ meta_surface_pre_paint (MetaSurface *self)
META_SURFACE_GET_CLASS (self)->pre_paint (self);
}
-
-void
-meta_surface_sync_geometry (MetaSurface *self)
-{
- MetaSurfacePrivate *priv;
- MetaRectangle rect;
-
- priv = meta_surface_get_instance_private (self);
-
- meta_window_get_input_rect (priv->window, &rect);
-
- if (priv->width != rect.width ||
- priv->height != rect.height)
- {
- free_pixmap (self);
-
- priv->width = rect.width;
- priv->height = rect.height;
- }
-}
diff --git a/src/compositor/meta-surface.h b/src/compositor/meta-surface.h
index 6008837e..5d299dcd 100644
--- a/src/compositor/meta-surface.h
+++ b/src/compositor/meta-surface.h
@@ -44,10 +44,10 @@ void meta_surface_hide (MetaSurface *self);
void meta_surface_process_damage (MetaSurface *self,
XDamageNotifyEvent *event);
-void meta_surface_pre_paint (MetaSurface *self);
-
void meta_surface_sync_geometry (MetaSurface *self);
+void meta_surface_pre_paint (MetaSurface *self);
+
G_END_DECLS
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]