[metacity] tabpopup.c: always show 5px outline border
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] tabpopup.c: always show 5px outline border
- Date: Sat, 4 Oct 2014 21:16:07 +0000 (UTC)
commit aab7b07a194903c2a30526b940971518bfbfeeda
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Oct 3 19:57:08 2014 +0300
tabpopup.c: always show 5px outline border
src/core/screen.c | 30 +++++-------------------------
1 files changed, 5 insertions(+), 25 deletions(-)
---
diff --git a/src/core/screen.c b/src/core/screen.c
index c1e886b..1785bdb 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -1279,37 +1279,17 @@ meta_screen_ensure_tab_popup (MetaScreen *screen,
*/
#define OUTLINE_WIDTH 5
/* Top side */
- if (!entries[i].hidden &&
- window->frame && window->frame->bottom_height > 0 &&
- window->frame->child_y >= window->frame->bottom_height)
- entries[i].inner_rect.y = window->frame->bottom_height;
- else
- entries[i].inner_rect.y = OUTLINE_WIDTH;
+ entries[i].inner_rect.y = OUTLINE_WIDTH;
/* Bottom side */
- if (!entries[i].hidden &&
- window->frame && window->frame->bottom_height != 0)
- entries[i].inner_rect.height = r.height
- - entries[i].inner_rect.y - window->frame->bottom_height;
- else
- entries[i].inner_rect.height = r.height
- - entries[i].inner_rect.y - OUTLINE_WIDTH;
+ entries[i].inner_rect.height = r.height - entries[i].inner_rect.y - OUTLINE_WIDTH;
/* Left side */
- if (!entries[i].hidden && window->frame && window->frame->child_x != 0)
- entries[i].inner_rect.x = window->frame->child_x;
- else
- entries[i].inner_rect.x = OUTLINE_WIDTH;
+ entries[i].inner_rect.x = OUTLINE_WIDTH;
/* Right side */
- if (!entries[i].hidden &&
- window->frame && window->frame->right_width != 0)
- entries[i].inner_rect.width = r.width
- - entries[i].inner_rect.x - window->frame->right_width;
- else
- entries[i].inner_rect.width = r.width
- - entries[i].inner_rect.x - OUTLINE_WIDTH;
-
+ entries[i].inner_rect.width = r.width - entries[i].inner_rect.x - OUTLINE_WIDTH;
+
++i;
tmp = tmp->next;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]