summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorTim Wiederhake <twied@gmx.net>2024-01-20 16:07:00 +0100
committerTim Wiederhake <twied@gmx.net>2024-01-20 16:07:00 +0100
commitc5a63751f8b4eab72794e56365ead929023f2b94 (patch)
treedf13c5ec28b27bb1b02a06c214b0b889fe3f174e /src/util.c
parent6ea386bd98a737a9f54e2ca4216adf45868fd6e4 (diff)
Remove global variables JunkX, JunkY
Replace with a local variable following the naming scheme from Identify() in src/menus.c. Signed-off-by: Tim Wiederhake <twied@gmx.net>
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index e634e7f..edf93a9 100644
--- a/src/util.c
+++ b/src/util.c
@@ -279,10 +279,11 @@ ExpandFilename(const char *name)
void
GetUnknownIcon(const char *name)
{
+ int dummy = 0;
Window wdummy = None;
if ((Scr->UnknownPm = GetBitmap(name)) != None) {
- XGetGeometry(dpy, Scr->UnknownPm, &wdummy, &JunkX, &JunkY,
+ XGetGeometry(dpy, Scr->UnknownPm, &wdummy, &dummy, &dummy,
(unsigned int *) &Scr->UnknownWidth,
(unsigned int *) &Scr->UnknownHeight, &JunkBW, &JunkDepth);
}