]> Dogcows Code - chaz/openbox/blobdiff - openbox/framerender.c
revert the pressed toggled thing for a while
[chaz/openbox] / openbox / framerender.c
index a05ef6cfe6e071dd45b1b52ed0d12a50b0b904b5..7356a3833d99446f9796d1965fba11c34839d18d 100644 (file)
@@ -34,7 +34,7 @@ static void framerender_close(ObFrame *self, RrAppearance *a);
 void framerender_frame(ObFrame *self)
 {
     {
-        unsigned long px;
+        gulong px;
 
         px = (self->focused ?
               RrColorPixel(ob_rr_theme->cb_focused_color) :
@@ -235,12 +235,14 @@ static void framerender_label(ObFrame *self, RrAppearance *a)
 
 static void framerender_icon(ObFrame *self, RrAppearance *a)
 {
+    const ObClientIcon *icon;
+
     if (self->icon_x < 0) return;
 
-    if (self->client->nicons) {
-        const ObClientIcon *icon = client_icon(self->client,
-                                               ob_rr_theme->button_size + 2,
-                                               ob_rr_theme->button_size + 2);
+    icon = client_icon(self->client,
+                       ob_rr_theme->button_size + 2,
+                       ob_rr_theme->button_size + 2);
+    if (icon) {
         a->texture[0].type = RR_TEXTURE_RGBA;
         a->texture[0].data.rgba.width = icon->width;
         a->texture[0].data.rgba.height = icon->height;
This page took 0.020569 seconds and 4 git commands to generate.