[metacity] compositor: simplify win_extents
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] compositor: simplify win_extents
- Date: Sat, 4 Mar 2017 16:50:46 +0000 (UTC)
commit 8765904158d07abae6a6c167daeba61941fd847c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Mar 4 18:36:27 2017 +0200
compositor: simplify win_extents
src/compositor/meta-compositor-xrender.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index 94a9966..3119374 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -1043,9 +1043,6 @@ static XserverRegion
win_extents (MetaCompositorXRender *xrender,
MetaCompWindow *cw)
{
- MetaScreen *screen = cw->screen;
- MetaDisplay *display = meta_screen_get_display (screen);
- Display *xdisplay = meta_display_get_xdisplay (display);
XRectangle r;
r.x = cw->attrs.x;
@@ -1110,7 +1107,7 @@ win_extents (MetaCompositorXRender *xrender,
r.height = sr.y + sr.height - r.y;
}
- return XFixesCreateRegion (xdisplay, &r, 1);
+ return XFixesCreateRegion (xrender->xdisplay, &r, 1);
}
static XserverRegion
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]