Merge pull request #14 from Cacodemon345/patch-27

Fix building with Wayland
This commit is contained in:
Joakim L. Gilje
2021-12-05 20:45:51 +01:00
committed by GitHub

View File

@@ -62,7 +62,7 @@ void RendererStack::mousePoll()
mousedata.deltax = mousedata.deltay = mousedata.deltaz = 0;
mouse_buttons = mousedata.mousebuttons;
#ifdef WAYLAND
if (wayland)
if (QApplication::platformName().contains("wayland"))
wl_mouse_poll();
#endif
#endif