aboutsummaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorokan2018-02-09 20:08:07 +0000
committerokan2018-02-09 20:08:07 +0000
commit3227a4121f877f63bdb20539a4253f8cc97b51a9 (patch)
treef5b78724f69690756c694e9829d5601ab6b60d97 /screen.c
parent899b48c0be951c63c0f16ddcbdde797fc0aa0e5a (diff)
downloadcwm-3227a4121f877f63bdb20539a4253f8cc97b51a9.tar.gz
limit scope of screen_apply_gap()
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/screen.c b/screen.c
index ae3e417..2cd3db9 100644
--- a/screen.c
+++ b/screen.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: screen.c,v 1.85 2018/01/23 16:18:59 okan Exp $
+ * $OpenBSD: screen.c,v 1.86 2018/02/09 20:08:07 okan Exp $
*/
#include <sys/types.h>
@@ -31,6 +31,8 @@
#include "calmwm.h"
+static struct geom screen_apply_gap(struct screen_ctx *, struct geom);
+
void
screen_init(int which)
{
@@ -220,7 +222,7 @@ screen_update_geometry(struct screen_ctx *sc)
xu_ewmh_net_workarea(sc);
}
-struct geom
+static struct geom
screen_apply_gap(struct screen_ctx *sc, struct geom geom)
{
geom.x += sc->gap.left;