xwm: Make override-redirect windows opaque
authorKristian Høgsberg <krh@bitplanet.net>
Sun, 22 Jul 2012 19:32:45 +0000 (15:32 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Sun, 22 Jul 2012 19:32:45 +0000 (15:32 -0400)
src/xwayland/window-manager.c

index 64290ec..e67cac1 100644 (file)
@@ -742,7 +742,17 @@ weston_wm_window_schedule_repaint(struct weston_wm_window *window)
 {
        struct weston_wm *wm = window->wm;
 
-       if (window->frame_id == XCB_WINDOW_NONE || window->repaint_source)
+       if (window->frame_id == XCB_WINDOW_NONE) {
+               if (window->surface != NULL) {
+                       window->surface->opaque_rect[0] = 0.0;
+                       window->surface->opaque_rect[1] = 1.0;
+                       window->surface->opaque_rect[2] = 0.0;
+                       window->surface->opaque_rect[3] = 1.0;
+               }
+               return;
+       }
+
+       if (window->repaint_source)
                return;
 
        window->repaint_source =