Apply combined shape mask correctly
authorMikael Magnusson <mikachu@gmail.com>
Sun, 2 Apr 2017 17:20:23 +0000 (19:20 +0200)
committerMikael Magnusson <mikachu@gmail.com>
Sun, 2 Apr 2017 17:20:23 +0000 (19:20 +0200)
This only broke windows that use ShapeInput and don't hide
their window decorations, which is a fairly small set.

openbox/frame.c

index 22249a5..5b695f7 100644 (file)
@@ -319,7 +319,7 @@ void frame_adjust_shape_kind(ObFrame *self, int kind)
         }
 
         XShapeCombineRectangles(obt_display, self->window,
-                                ShapeBounding, 0, 0, xrect, num,
+                                kind, 0, 0, xrect, num,
                                 ShapeUnion, Unsorted);
     }
 }