add test to window

This commit is contained in:
hippoz 2022-07-26 01:06:51 +03:00
parent cbbe90f57d
commit 112a3b83d3
No known key found for this signature in database
GPG key ID: 7C52899193467641

View file

@ -21,6 +21,7 @@ void Window::set_main_widget(std::shared_ptr<Widget> main_widget) {
bool Window::spawn_window() {
Display *dsp = XOpenDisplay(NULL);
XSynchronize(dsp, False);
if (dsp == NULL) {
std::cerr << "error: XOpenDisplay(NULL)" << "\n";
return false;