mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-25 01:40:19 -05:00
Merge branch 'handle-xdg-output-manager-coming-after-output-objects' into master
Closes #118
This commit is contained in:
commit
3b763c12cb
2 changed files with 9 additions and 0 deletions
|
|
@ -99,6 +99,8 @@
|
|||
binding has consumed it.
|
||||
* Input events from getting mixed with paste data
|
||||
(https://codeberg.org/dnkl/foot/issues/101).
|
||||
* Missing DPI values for “some” monitors on Gnome
|
||||
(https://codeberg.org/dnkl/foot/issues/118).
|
||||
|
||||
|
||||
### Security
|
||||
|
|
|
|||
|
|
@ -796,6 +796,13 @@ handle_global(void *data, struct wl_registry *registry,
|
|||
wayl->xdg_output_manager = wl_registry_bind(
|
||||
wayl->registry, name, &zxdg_output_manager_v1_interface,
|
||||
min(version, 2));
|
||||
|
||||
tll_foreach(wayl->monitors, it) {
|
||||
struct monitor *mon = &it->item;
|
||||
mon->xdg = zxdg_output_manager_v1_get_xdg_output(
|
||||
wayl->xdg_output_manager, mon->output);
|
||||
zxdg_output_v1_add_listener(mon->xdg, &xdg_output_listener, mon);
|
||||
}
|
||||
}
|
||||
|
||||
else if (strcmp(interface, wl_output_interface.name) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue