add test to window
This commit is contained in:
parent
cbbe90f57d
commit
112a3b83d3
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue