From 58d4aeb397912b3d4b2d03da77521de73f842286 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 3 Apr 2020 00:02:28 +0200 Subject: asdf --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f16af2b..3c8c754 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -523,6 +523,7 @@ int main(int argc, char **argv) { if(strcmp(argv[i], it.first.c_str()) == 0) { it.second = argv[i + 1]; valid_arg = true; + break; } } @@ -564,14 +565,14 @@ int main(int argc, char **argv) { return 1; } - XCompositeRedirectWindow(dpy, src_window_id, CompositeRedirectAutomatic); - XWindowAttributes attr; if (!XGetWindowAttributes(dpy, src_window_id, &attr)) { fprintf(stderr, "Error: Invalid window id: %lu\n", src_window_id); return 1; } + XCompositeRedirectWindow(dpy, src_window_id, CompositeRedirectAutomatic); + // glXMakeContextCurrent(Display *dpy, GLXDrawable draw, GLXDrawable read, // GLXContext ctx) if (!glfwInit()) { -- cgit v1.2.3