mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
wayland: regression: properly instantiate CSDs when there’s no decoration manager
* Set win->configure.csd_mode, not win->csd_mode. Otherwise our ‘configure’ handler will swap out the CSD_YES we set, for CSD_UNKNOWN(?), resulting in no CSDs at all. * Don’t instantiate the CSDs in wayl_win_init(), let the ‘configure’ event handler do that. Just like it does when we have a decoration manager emitting decoration configure events.
This commit is contained in:
parent
07128ee905
commit
20c0650dfd
1 changed files with 1 additions and 2 deletions
|
|
@ -1384,8 +1384,7 @@ wayl_win_init(struct terminal *term)
|
||||||
win->xdg_toplevel_decoration, &xdg_toplevel_decoration_listener, win);
|
win->xdg_toplevel_decoration, &xdg_toplevel_decoration_listener, win);
|
||||||
} else {
|
} else {
|
||||||
/* No decoration manager - thus we *must* draw our own decorations */
|
/* No decoration manager - thus we *must* draw our own decorations */
|
||||||
win->csd_mode = CSD_YES;
|
win->configure.csd_mode = CSD_YES;
|
||||||
csd_instantiate(win);
|
|
||||||
LOG_WARN("no decoration manager available - using CSDs unconditionally");
|
LOG_WARN("no decoration manager available - using CSDs unconditionally");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue