Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
theme: add invisible_border to metacity theme
This adds 'invisible_border' to metacity theme. This invisible
border will be used for resize cursor area.
  • Loading branch information
Alberts Muktupāvels authored and vkareh committed Aug 28, 2018
1 parent c49f361 commit 93b5dd1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/theme-parser.c
Expand Up @@ -38,7 +38,7 @@
* look out for.
*/
#define THEME_MAJOR_VERSION 3
#define THEME_MINOR_VERSION 5
#define THEME_MINOR_VERSION 6
#define THEME_VERSION (1000 * THEME_MAJOR_VERSION + THEME_MINOR_VERSION)

#define MARCO_THEME_FILENAME_FORMAT "metacity-theme-%d.xml"
Expand Down Expand Up @@ -1570,6 +1570,8 @@ parse_border (GMarkupParseContext *context,
border = &info->layout->title_border;
else if (strcmp (name, "button_border") == 0)
border = &info->layout->button_border;
else if (strcmp (name, "invisible_border") == 0)
border = &info->layout->invisible_border;

if (border == NULL)
{
Expand Down
5 changes: 5 additions & 0 deletions src/ui/theme.c
Expand Up @@ -219,6 +219,11 @@ meta_frame_layout_new (void)
layout->right_width = -1;
layout->bottom_height = -1;

layout->invisible_border.left = 10;
layout->invisible_border.right = 10;
layout->invisible_border.bottom = 10;
layout->invisible_border.top = 10;

init_border (&layout->title_border);

layout->title_vertical_pad = -1;
Expand Down
3 changes: 3 additions & 0 deletions src/ui/theme.h
Expand Up @@ -92,6 +92,9 @@ struct _MetaFrameLayout
/** Size of bottom side */
int bottom_height;

/** Invisible border */
GtkBorder invisible_border;

/** Border of blue title region
* \bug (blue?!)
**/
Expand Down

0 comments on commit 93b5dd1

Please sign in to comment.