John Lindgren
4f72e6775e
tree-wide: rename g_server to just server
2026-03-21 21:35:33 +00:00
John Lindgren
cb49bddf63
tree-wide: auto-replace of (struct server *)
...
#!/bin/bash
read -r -d '' EXPRS << EOF
s/xwayland->server/xwayland->svr/g;
s/\t*struct server \*server;\n//g;
s/\t*struct server \*server =.*?;\n//gs;
s/\t*.* = ([a-z_]*->)*server[;,]\n//g;
s/\{\n\n/\{\n/g;
s/\n\n+/\n\n/g;
s/\(\s*struct server \*server\)/(void)/g;
s/\(\s*struct server \*server,\s*/(/g;
s/,\s*struct server \*server\)/)/g;
s/,\s*struct server \*server,\s*/, /g;
s/\(\s*([a-z_]*->)*server\)/()/g;
s/\(\s*([a-z_]*->)*server,\s*/(/g;
s/,\s*([a-z_]*->)*server\)/)/g;
s/,\s*([a-z_]*->)*server,\s*/, /g;
s/([a-z_]*->)*server->/g_server./g;
s/xwayland->svr/xwayland->server/g;
EOF
find src include \( -name \*.c -o -name \*.h \) -exec \
perl -0777 -i -pe "$EXPRS" \{\} \;
2026-03-21 21:35:33 +00:00
John Lindgren
9d49d19cd2
include: add config/types.h
2025-08-21 16:55:25 +09:00
John Lindgren
e21fc065c4
include: split output.h from labwc.h
2025-07-30 21:04:31 +01:00
John Lindgren
31d42b50e2
src: include primary header first
...
This is a common practice in C projects, which simply enforces that
each header must compile cleanly without implicit dependencies on
other headers (see also the previous commit).
2025-07-29 21:51:56 +01:00
tinyboxvk
1a6dd845a2
Fix typos
...
Signed-off-by: tinyboxvk <13696594+tinyboxvk@users.noreply.github.com>
2025-01-09 06:59:57 +00:00
Hiroaki Yamamoto
be37f9a564
Fix various typos across the codebase
2024-03-08 13:59:20 +01:00
Consolatis
a5c6b2f83d
Prevent 'unused variable' warnings when compiled without asserts
2024-02-10 19:22:12 +01:00
Andrew J. Hesford
1b0f1a4c4e
placement: consider gaps when placing new windows
2024-01-30 13:35:33 -05:00
Consolatis
e05bedb140
feat: add Shade/Unshade/ToggleShade actions
...
This builds on the work of @Consolatis in #1018 .
Co-authored-by: Consolatis <35009135+Consolatis@users.noreply.github.com>
Co-authored-by: Andrew J. Hesford <ajh@sideband.org>
2024-01-15 21:37:36 +00:00
Andrew J. Hesford
b1c5e95c05
view: honor automatic placement when adjusting floating geometry
...
The view_adjust_floating_geometry function is called when un-maximizing
a window or changing the output layout to ensure that views are well
placed. Rather than always centering these views should they fall
offscren, use the automatic placement strategy if so configured.
2023-12-30 16:50:09 +00:00
Andrew J. Hesford
52aafcc054
feat: automatic window placement
...
With automatic placement, new top-level windows will be placed to
minimize overlap with other windows already on screen.
2023-12-26 19:20:06 +00:00