Skip to content

Commit

Permalink
[bugfix] revert changes to wayland module
Browse files Browse the repository at this point in the history
removing the wl_roundtrip thing from the main file causes the
wl_outputs to not be initialized, wherein xava compares an
empty string, where the outputs names were supposed to be

Solves: #64 and #63
  • Loading branch information
nikp123 committed Oct 5, 2024
1 parent d0ccf97 commit 621e384
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/output/graphical_wayland/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ EXP_FUNC int xavaInitOutput(XAVA *hand) {
backgroundLayer = 0;
}

// needed to be done twice for xdg_output to do it's frickin' job ..
wl_display_roundtrip(wd.display);

wd.surface = wl_compositor_create_surface(wd.compositor);

// The option carries the same functionality here to Wayland as well
Expand Down

0 comments on commit 621e384

Please sign in to comment.