[mutter/wip/cb2eb3: 20/55] window-actor: Remove an unnecessary frame check
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/cb2eb3: 20/55] window-actor: Remove an unnecessary frame check
- Date: Wed, 1 Oct 2014 15:49:06 +0000 (UTC)
commit e43f8db6e82a25076012ba7d5a6105e265f0fc4e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Apr 26 23:28:28 2012 -0400
window-actor: Remove an unnecessary frame check
meta_frame_calc_borders will zero out the borders if we don't have a frame.
src/compositor/meta-window-actor.c | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 50bc599..686e3c3 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -2030,17 +2030,8 @@ check_needs_reshape (MetaWindowActor *self)
client_area.width = priv->window->rect.width;
client_area.height = priv->window->rect.height;
-
- if (priv->window->frame)
- {
- client_area.x = borders.total.left;
- client_area.y = borders.total.top;
- }
- else
- {
- client_area.x = 0;
- client_area.y = 0;
- }
+ client_area.x = borders.total.left;
+ client_area.y = borders.total.top;
/* Punch out client area. */
cairo_region_subtract_rectangle (region, &client_area);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]