This commit is contained in:
dec05eba 2020-04-03 00:02:28 +02:00
parent 19a6294e5f
commit 58d4aeb397

View File

@ -523,6 +523,7 @@ int main(int argc, char **argv) {
if(strcmp(argv[i], it.first.c_str()) == 0) { if(strcmp(argv[i], it.first.c_str()) == 0) {
it.second = argv[i + 1]; it.second = argv[i + 1];
valid_arg = true; valid_arg = true;
break;
} }
} }
@ -564,14 +565,14 @@ int main(int argc, char **argv) {
return 1; return 1;
} }
XCompositeRedirectWindow(dpy, src_window_id, CompositeRedirectAutomatic);
XWindowAttributes attr; XWindowAttributes attr;
if (!XGetWindowAttributes(dpy, src_window_id, &attr)) { if (!XGetWindowAttributes(dpy, src_window_id, &attr)) {
fprintf(stderr, "Error: Invalid window id: %lu\n", src_window_id); fprintf(stderr, "Error: Invalid window id: %lu\n", src_window_id);
return 1; return 1;
} }
XCompositeRedirectWindow(dpy, src_window_id, CompositeRedirectAutomatic);
// glXMakeContextCurrent(Display *dpy, GLXDrawable draw, GLXDrawable read, // glXMakeContextCurrent(Display *dpy, GLXDrawable draw, GLXDrawable read,
// GLXContext ctx) // GLXContext ctx)
if (!glfwInit()) { if (!glfwInit()) {