]> Dogcows Code - chaz/openbox/blobdiff - src/Image.cc
dont grab other windows while warping in opaque mode
[chaz/openbox] / src / Image.cc
index 674fdeace13ef93283e2bcbfa35f3cec0111a429..7aaeefaf160b20b38e228f3559f702db4382cba2 100644 (file)
@@ -41,7 +41,7 @@ using std::min;
 #include "Texture.hh"
 
 
-BImage::BImage(BImageControl *c, unsigned int w, unsigned int h) {
+BImage::BImage(BImageControl *c, int w, int h) {
   control = c;
 
   width = (w > 0) ? w : 1;
@@ -107,6 +107,11 @@ Pixmap BImage::render_solid(const BTexture &texture) {
       XDrawLine(display, pixmap, peninterlace.gc(), 0, i, width, i);
   }
 
+  if (texture.texture() & BTexture::FlatBorder) {
+    BPen penborder(texture.colorTo());
+    XDrawRectangle(display, pixmap, penborder.gc(), 0, 0, width-1, height-1);
+  }
+
   if (texture.texture() & BTexture::Bevel1) {
     if (texture.texture() & BTexture::Raised) {
       XDrawLine(display, pixmap, penshadow.gc(),
This page took 0.024483 seconds and 4 git commands to generate.