diff options
author | Victor Kareh <[email protected]> | 2019-05-21 13:15:48 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-16 18:12:44 +0200 |
commit | 860f7a6dbc81272c561a1b8d045e5ff61ea0e66a (patch) | |
tree | b81ee0c5ff3402451009294690e204d0d242e794 /src/core | |
parent | cfd49bdf68ef48fcd53a084c74626372fc169688 (diff) | |
download | marco-860f7a6dbc81272c561a1b8d045e5ff61ea0e66a.tar.bz2 marco-860f7a6dbc81272c561a1b8d045e5ff61ea0e66a.tar.xz |
MetaFrameBorders: Add meta_frame_borders_clear
Just a quick little commit to help clean things up for when we add invisible
borders. Additionally, do a little housekeeping in preview-widget as well.
https://bugzilla.gnome.org/show_bug.cgi?id=644930
NOTE: Patch copied from metacity and adapted for marco.
upstream commit:
https://gitlab.gnome.org/GNOME/metacity/commit/7d519b3f
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/common.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/core/common.c b/src/core/common.c new file mode 100644 index 00000000..c7fe1012 --- /dev/null +++ b/src/core/common.c @@ -0,0 +1,34 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ + +/* Metacity X window decorations */ + +/* + * Copyright (C) 2001 Havoc Pennington + * Copyright (C) 2003, 2004 Red Hat, Inc. + * Copyright (C) 2005 Elijah Newren + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see <http://www.gnu.org/licenses/>. + */ + +#include <config.h> +#include "common.h" + +void +meta_frame_borders_clear (MetaFrameBorders *self) +{ + self->visible.top = 0; + self->visible.bottom = 0; + self->visible.left = 0; + self->visible.right = 0; +} |