Skip to content

Commit 93b5dd1

Browse files
Alberts Muktupāvelsvkareh
authored andcommitted
theme: add invisible_border to metacity theme
This adds 'invisible_border' to metacity theme. This invisible border will be used for resize cursor area.
1 parent c49f361 commit 93b5dd1

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/ui/theme-parser.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* look out for.
3939
*/
4040
#define THEME_MAJOR_VERSION 3
41-
#define THEME_MINOR_VERSION 5
41+
#define THEME_MINOR_VERSION 6
4242
#define THEME_VERSION (1000 * THEME_MAJOR_VERSION + THEME_MINOR_VERSION)
4343

4444
#define MARCO_THEME_FILENAME_FORMAT "metacity-theme-%d.xml"
@@ -1570,6 +1570,8 @@ parse_border (GMarkupParseContext *context,
15701570
border = &info->layout->title_border;
15711571
else if (strcmp (name, "button_border") == 0)
15721572
border = &info->layout->button_border;
1573+
else if (strcmp (name, "invisible_border") == 0)
1574+
border = &info->layout->invisible_border;
15731575

15741576
if (border == NULL)
15751577
{

src/ui/theme.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ meta_frame_layout_new (void)
219219
layout->right_width = -1;
220220
layout->bottom_height = -1;
221221

222+
layout->invisible_border.left = 10;
223+
layout->invisible_border.right = 10;
224+
layout->invisible_border.bottom = 10;
225+
layout->invisible_border.top = 10;
226+
222227
init_border (&layout->title_border);
223228

224229
layout->title_vertical_pad = -1;

src/ui/theme.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ struct _MetaFrameLayout
9292
/** Size of bottom side */
9393
int bottom_height;
9494

95+
/** Invisible border */
96+
GtkBorder invisible_border;
97+
9598
/** Border of blue title region
9699
* \bug (blue?!)
97100
**/

0 commit comments

Comments
 (0)