mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
Add support for xdg_toplevel.wm_capabilities
See https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/122
This commit is contained in:
parent
2f68b421bf
commit
129e1a9b8e
4 changed files with 55 additions and 5 deletions
6
render.c
6
render.c
|
|
@ -1726,10 +1726,12 @@ get_csd_data(const struct terminal *term, enum csd_surface surf_idx)
|
|||
const int button_close_width = term->width >= 1 * button_width
|
||||
? button_width : 0;
|
||||
|
||||
const int button_maximize_width = term->width >= 2 * button_width
|
||||
const int button_maximize_width =
|
||||
term->width >= 2 * button_width && term->window->wm_capabilities.maximize
|
||||
? button_width : 0;
|
||||
|
||||
const int button_minimize_width = term->width >= 3 * button_width
|
||||
const int button_minimize_width =
|
||||
term->width >= 3 * button_width && term->window->wm_capabilities.minimize
|
||||
? button_width : 0;
|
||||
|
||||
switch (surf_idx) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue