asdf
This commit is contained in:
parent
19a6294e5f
commit
58d4aeb397
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user