]> git.mdlowis.com Git - proto/labwc.git/commit
include: Break out view.h from labwc.h
authorJohn Lindgren <john@jlindgren.net>
Mon, 21 Nov 2022 15:10:39 +0000 (10:10 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 21 Nov 2022 21:42:37 +0000 (21:42 +0000)
commitf08e931a29a693c2d1eb363a6766e81cc9081213
tree8c524979b94ac4021dec3b60f65983026817d4e0
parent9021020f6e37150d8c67d389fa7da3410ef71ba4
include: Break out view.h from labwc.h

IMHO it encourages better design (by making dependencies more obvious)
to have source file/header file pairs like view.c/view.h, rather than a
monolithic header like labwc.h with everything in it.

I don't think we need to break up all of labwc.h at once, but maybe we
can start pulling it apart bit by bit as it's convenient.

Also:

- Move "struct border" to ssd.h so that view.h can use it without pulling
  in all of labwc.h.
- Add a missing required #include within scaled_font_buffer.h (forward
  declaration of "struct font" is not enough).
25 files changed:
include/common/scaled_font_buffer.h
include/labwc.h
include/ssd.h
include/view.h [new file with mode: 0644]
src/action.c
src/cursor.c
src/debug.c
src/desktop.c
src/foreign.c
src/interactive.c
src/osd.c
src/output.c
src/resistance.c
src/server.c
src/ssd/ssd.c
src/ssd/ssd_border.c
src/ssd/ssd_extents.c
src/ssd/ssd_titlebar.c
src/view-impl.c
src/view.c
src/workspaces.c
src/xdg-deco.c
src/xdg-popup.c
src/xdg.c
src/xwayland.c