mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
limit scope of screen_apply_gap()
This commit is contained in:
parent
1a5f80bd0b
commit
e6bf7429b3
1
calmwm.h
1
calmwm.h
@ -476,7 +476,6 @@ void search_print_text(struct menu *, int);
|
||||
void search_print_wm(struct menu *, int);
|
||||
|
||||
struct region_ctx *region_find(struct screen_ctx *, int, int);
|
||||
struct geom screen_apply_gap(struct screen_ctx *, struct geom);
|
||||
struct screen_ctx *screen_find(Window);
|
||||
struct geom screen_area(struct screen_ctx *, int, int,
|
||||
enum apply_gap);
|
||||
|
4
screen.c
4
screen.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user