]> git.mdlowis.com Git - proto/labwc.git/commit
ssd: Allocate `struct ssd` and `struct ssd_hover_state` separately
authorJohn Lindgren <john@jlindgren.net>
Sat, 26 Nov 2022 21:46:28 +0000 (16:46 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 27 Nov 2022 06:48:41 +0000 (06:48 +0000)
commit1e8b0414fef7f11b61e8ffc580ab46d485651b53
tree9c9a7296437f997b468125b620abd5d2fede268a
parentcfa51ab6285319250061be5a58c192293ca5031d
ssd: Allocate `struct ssd` and `struct ssd_hover_state` separately

- Store a pointer to the `struct view` in `struct ssd`
- Pass `struct ssd *` instead of `struct view *` to ssd functions
- Add `ssd_get_margin()` convenience function
15 files changed:
include/labwc.h
include/ssd.h
include/view.h
src/action.c
src/cursor.c
src/debug.c
src/desktop.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.c
src/xdg.c