aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-04-03 00:02:28 +0200
committerdec05eba <dec05eba@protonmail.com>2020-06-21 14:41:11 +0200
commit58d4aeb397912b3d4b2d03da77521de73f842286 (patch)
treec5570a963070ed3983b8025c4ed3cd10bfd1021e /src
parent19a6294e5fd79a47f5c3d2f185ee421d9e03063c (diff)
asdf
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp5
1 files 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()) {