summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-04-28 11:19:30 -0400
committerKristian Høgsberg <krh@bitplanet.net>2014-04-30 21:02:37 -0700
commitf11ad43ed0356fc8660971ee771cf2943263c19b (patch)
tree3cc8ef7131f17a32b91a20c355a9599ce73beb67 /shared
parenta4d9723341d1ccd387a612827a81c67c446948bc (diff)
downloadweston-f11ad43ed0356fc8660971ee771cf2943263c19b.tar.gz
cairo-util: Don't show a resize cursor on edges when we're maximized
This is substantially confusing to users, namely me. krh: Edited to just set grip size to zero.
Diffstat (limited to 'shared')
-rw-r--r--shared/cairo-util.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/shared/cairo-util.c b/shared/cairo-util.c
index a1568ff9..2a332490 100644
--- a/shared/cairo-util.c
+++ b/shared/cairo-util.c
@@ -488,10 +488,15 @@ theme_get_location(struct theme *t, int x, int y,
int width, int height, int flags)
{
int vlocation, hlocation, location;
- const int grip_size = 8;
- int margin, top_margin;
+ int margin, top_margin, grip_size;
- margin = (flags & THEME_FRAME_MAXIMIZED) ? 0 : t->margin;
+ if (flags & THEME_FRAME_MAXIMIZED) {
+ margin = 0;
+ grip_size = 0;
+ } else {
+ margin = t->margin;
+ grip_size = 8;
+ }
if (flags & THEME_FRAME_NO_TITLE)
top_margin = t->width;