window: Set opaque region to window size if we're fullscreen
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 16 Oct 2013 23:06:18 +0000 (16:06 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 16 Oct 2013 23:06:18 +0000 (16:06 -0700)
clients/window.c

index d68433b..3885873 100644 (file)
@@ -2189,10 +2189,17 @@ frame_resize_handler(struct widget *widget,
        widget_set_allocation(widget, 0, 0, width, height);
 
        if (child->opaque) {
-               frame_opaque_rect(frame->frame, &opaque.x, &opaque.y,
-                                 &opaque.width, &opaque.height);
-               wl_region_add(widget->surface->opaque_region,
-                             opaque.x, opaque.y, opaque.width, opaque.height);
+               if (widget->window->type != TYPE_FULLSCREEN) {
+                       frame_opaque_rect(frame->frame, &opaque.x, &opaque.y,
+                                         &opaque.width, &opaque.height);
+
+                       wl_region_add(widget->surface->opaque_region,
+                                     opaque.x, opaque.y,
+                                     opaque.width, opaque.height);
+               } else {
+                       wl_region_add(widget->surface->opaque_region,
+                                     0, 0, width, height);
+               }
        }