[metacity] compositor: remove unused parameter from expose_area
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] compositor: remove unused parameter from expose_area
- Date: Fri, 3 Mar 2017 21:12:58 +0000 (UTC)
commit ac4cce2a2ad9e0757f5528203dfa7f0073cbbb43
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Mar 3 22:48:56 2017 +0200
compositor: remove unused parameter from expose_area
src/compositor/meta-compositor-xrender.c | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index ed718ee..3e6d2e4 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -2763,7 +2763,6 @@ process_property_notify (MetaCompositorXRender *xrender,
static void
expose_area (MetaCompositorXRender *xrender,
- MetaScreen *screen,
XRectangle *rects,
int nrects)
{
@@ -2782,32 +2781,22 @@ static void
process_expose (MetaCompositorXRender *xrender,
XExposeEvent *event)
{
- MetaCompositor *compositor = META_COMPOSITOR (xrender);
- MetaDisplay *display = meta_compositor_get_display (compositor);
MetaCompWindow *cw = find_window (xrender, event->window);
- MetaScreen *screen = NULL;
XRectangle rect[1];
int origin_x = 0, origin_y = 0;
if (cw != NULL)
{
- screen = cw->screen;
origin_x = cw->attrs.x; /* + cw->attrs.border_width; ? */
origin_y = cw->attrs.y; /* + cw->attrs.border_width; ? */
}
- else
- {
- screen = meta_display_screen_for_root (display, event->window);
- if (screen == NULL)
- return;
- }
rect[0].x = event->x + origin_x;
rect[0].y = event->y + origin_y;
rect[0].width = event->width;
rect[0].height = event->height;
- expose_area (xrender, screen, rect, 1);
+ expose_area (xrender, rect, 1);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]