summaryrefslogtreecommitdiff
path: root/xnap.c
diff options
context:
space:
mode:
authoruint <abhinav.prsai@gmail.com>2025-12-14 16:22:50 +0000
committeruint <abhinav.prsai@gmail.com>2025-12-14 16:22:50 +0000
commit3e4a21e646b7b7fab8cdad370e3d03f7957bc833 (patch)
treea945ca014b6152afd16f8c50f0d44d6a46c1eb4f /xnap.c
parentde2bf2260b76cd0752760d04d85d283c8fe98791 (diff)
fix shadowing of scr
Diffstat (limited to 'xnap.c')
-rw-r--r--xnap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xnap.c b/xnap.c
index 1b9f20b..1ebface 100644
--- a/xnap.c
+++ b/xnap.c
@@ -99,7 +99,7 @@ void setup(void)
if (dpy == NULL)
die ("failed to open display");
- int scr = DefaultScreen(dpy);
+ scr = DefaultScreen(dpy);
root = RootWindow(dpy, scr);
/* pointer */