Update window.cpp
This commit is contained in:
@@ -14,9 +14,7 @@ Window window;
|
||||
XEvent xev;
|
||||
Display* display = XOpenDisplay(nullptr);
|
||||
int defaultScreen = DefaultScreen(display);
|
||||
//Visual* visual = DefaultVisual(display,defaultScreen);
|
||||
XVisualInfo* visual;
|
||||
//int depth = DefaultDepth(display, defaultScreen);
|
||||
XSetWindowAttributes xSetWindowAttributes;
|
||||
XWindowAttributes windowAttributes;
|
||||
Atom wmDeleteWindow;
|
||||
@@ -76,6 +74,7 @@ void RWindow::init(RenderingAPI api, const char* title, int width, int height, b
|
||||
wmDeleteWindow = XInternAtom(display, "WM_DELETE_WINDOW", False);
|
||||
XSetWMProtocols(display, window, &wmDeleteWindow, 1);
|
||||
glXMakeCurrent(display, window, glContext);
|
||||
setVsyncEnabled(vsync);
|
||||
} else {exit(0);}
|
||||
}
|
||||
|
||||
@@ -248,7 +247,7 @@ bool RWindow::mouseButtonDown(MouseButton buttoncode) {
|
||||
if (e->button == buttoncode) { return true;}
|
||||
}
|
||||
}
|
||||
return false;*/
|
||||
return false;
|
||||
}
|
||||
|
||||
MouseButtonDownEvent RWindow::getEvent(MouseButton buttoncode) {
|
||||
|
Reference in New Issue
Block a user