fix(surface): XDefaultRootWindow being called even if XOpenDisplay fails
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
55d68e3b71
commit
963032617e
1 changed files with 1 additions and 0 deletions
|
@ -110,6 +110,7 @@ void System::on_surface_construct(ecs::Registry ®istry, ecs::EntityId entity)
|
||||||
ensure(display_env != nullptr, "DISPLAY env var not found!");
|
ensure(display_env != nullptr, "DISPLAY env var not found!");
|
||||||
|
|
||||||
auto *display = XOpenDisplay(display_env);
|
auto *display = XOpenDisplay(display_env);
|
||||||
|
ensure(display, "Failed to open XDisplay with DISPLAY: {}", display_env);
|
||||||
|
|
||||||
auto root_window = XDefaultRootWindow(display);
|
auto root_window = XDefaultRootWindow(display);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue