Commit graph

4 commits

Author SHA1 Message Date
John Lindgren
84e25dd98d view/ssd: Move view->margin to view->ssd.margin 2022-11-22 02:26:14 -05:00
John Lindgren
db565e87df view: Add view_set_untiled() 2022-11-22 02:26:14 -05:00
John Lindgren
103faadd3e view: Rename/move workspaces_send_to() to view_move_to_workspace()
This function semantically belongs in view.c since it
modifies `struct view`.

Also a minor formatting fix in view_toggle_always_on_top().
2022-11-22 02:26:14 -05:00
John Lindgren
f08e931a29 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).
2022-11-21 21:42:37 +00:00