[libwnck] WnckPager: be more restrictive on allocation check
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck] WnckPager: be more restrictive on allocation check
- Date: Tue, 21 Oct 2014 18:36:57 +0000 (UTC)
commit 72a38cb214edb2310534f0c138e415a5a273dd6b
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Mon Oct 20 10:27:08 2014 -0400
WnckPager: be more restrictive on allocation check
libwnck/pager.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libwnck/pager.c b/libwnck/pager.c
index eef90c7..de6ae04 100644
--- a/libwnck/pager.c
+++ b/libwnck/pager.c
@@ -788,8 +788,8 @@ get_workspace_rect (WnckPager *pager,
gtk_widget_get_allocation (widget, &allocation);
- if (allocation.x == -1 || allocation.y == -1 ||
- allocation.width == -1 || allocation.height == -1)
+ if (allocation.x < 0 || allocation.y < 0 ||
+ allocation.width < 0 || allocation.height < 0)
{
rect->x = 0;
rect->y = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]