]> Dogcows Code - chaz/openbox/blobdiff - openbox/frame.c
use const Rect* not Rect const*
[chaz/openbox] / openbox / frame.c
index a6bfaefeeb566b642ba1920dd3da1ef19c814a8b..f4a29289dc9b204f1a089061a263349e3e0b330e 100644 (file)
@@ -89,7 +89,7 @@ ObFrame *frame_new(ObClient *client)
     ObFrame *self;
     Visual *visual;
 
-    self = g_new0(ObFrame, 1);
+    self = g_slice_new0(ObFrame);
     self->client = client;
 
     visual = check_32bit_client(client);
@@ -229,7 +229,7 @@ void frame_free(ObFrame *self)
     if (self->colormap)
         XFreeColormap(obt_display, self->colormap);
 
-    g_free(self);
+    g_slice_free(ObFrame, self);
 }
 
 void frame_show(ObFrame *self)
@@ -1677,7 +1677,9 @@ static gboolean frame_animate_iconify(gpointer p)
 
     if (self->client->icon_geometry.width == 0) {
         /* there is no icon geometry set so just go straight down */
-        Rect const *a = screen_physical_area_monitor(screen_find_monitor(&self->area));
+        const Rect *a;
+
+        a = screen_physical_area_monitor(screen_find_monitor(&self->area));
         iconx = self->area.x + self->area.width / 2 + 32;
         icony = a->y + a->width;
         iconw = 64;
This page took 0.022932 seconds and 4 git commands to generate.