[metacity/gnome-3-20] frames: remove clip_to_screen optimization



commit 0e3ff5f5e26f9ad202ee5f6051d5dc28fec8d8b0
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Jun 24 14:22:23 2016 +0300

    frames: remove clip_to_screen optimization
    
    https://bugzilla.gnome.org/show_bug.cgi?id=538438

 src/ui/frames.c |   34 ----------------------------------
 1 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index af9fff0..c0749c7 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2140,39 +2140,6 @@ populate_cache (MetaFrames *frames,
 }
 
 static void
-clip_to_screen (cairo_region_t *region, MetaUIFrame *frame)
-{
-  cairo_rectangle_int_t frame_area;
-  cairo_rectangle_int_t screen_area = { 0, 0, 0, 0 };
-  cairo_region_t *tmp_region;
-
-  /* Chop off stuff outside the screen; this optimization
-   * is crucial to handle huge client windows,
-   * like "xterm -geometry 1000x1000"
-   */
-  meta_core_get (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), frame->xwindow,
-                 META_CORE_GET_FRAME_X, &frame_area.x,
-                 META_CORE_GET_FRAME_Y, &frame_area.y,
-                 META_CORE_GET_FRAME_WIDTH, &frame_area.width,
-                 META_CORE_GET_FRAME_HEIGHT, &frame_area.height,
-                 META_CORE_GET_SCREEN_WIDTH, &screen_area.width,
-                 META_CORE_GET_SCREEN_HEIGHT, &screen_area.height,
-                 META_CORE_GET_END);
-
-  cairo_region_translate (region, frame_area.x, frame_area.y);
-
-  tmp_region = cairo_region_create_rectangle (&frame_area);
-  cairo_region_intersect (region, tmp_region);
-  cairo_region_destroy (tmp_region);
-
-  tmp_region = cairo_region_create_rectangle (&screen_area);
-  cairo_region_intersect (region, tmp_region);
-  cairo_region_destroy (tmp_region);
-
-  cairo_region_translate (region, - frame_area.x, - frame_area.y);
-}
-
-static void
 subtract_client_area (cairo_region_t *region,
                       MetaUIFrame    *frame)
 {
@@ -2295,7 +2262,6 @@ meta_frames_draw (GtkWidget *widget,
 
   cached_pixels_draw (pixels, cr, region);
 
-  clip_to_screen (region, frame);
   subtract_client_area (region, frame);
 
   n_areas = cairo_region_num_rectangles (region);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]