mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[client] wayland: check for failure of wl_display_connect
This commit is contained in:
parent
254b370bbf
commit
2f48798db9
@ -71,12 +71,16 @@ static bool waylandProbe(void)
|
|||||||
static bool waylandInit(const LG_DSInitParams params)
|
static bool waylandInit(const LG_DSInitParams params)
|
||||||
{
|
{
|
||||||
memset(&wlWm, 0, sizeof(wlWm));
|
memset(&wlWm, 0, sizeof(wlWm));
|
||||||
|
|
||||||
|
wlWm.display = wl_display_connect(NULL);
|
||||||
|
if (!wlWm.display)
|
||||||
|
return false;
|
||||||
|
|
||||||
wl_list_init(&wlWm.surfaceOutputs);
|
wl_list_init(&wlWm.surfaceOutputs);
|
||||||
|
|
||||||
wlWm.warpSupport = option_get_bool("wayland", "warpSupport");
|
wlWm.warpSupport = option_get_bool("wayland", "warpSupport");
|
||||||
wlWm.useFractionalScale = option_get_bool("wayland", "fractionScale");
|
wlWm.useFractionalScale = option_get_bool("wayland", "fractionScale");
|
||||||
|
|
||||||
wlWm.display = wl_display_connect(NULL);
|
|
||||||
wlWm.width = params.w;
|
wlWm.width = params.w;
|
||||||
wlWm.height = params.h;
|
wlWm.height = params.h;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user