diff options
-rw-r--r-- | src/add_window.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/add_window.c b/src/add_window.c index 9a526f7..1f5abe1 100644 --- a/src/add_window.c +++ b/src/add_window.c @@ -1347,15 +1347,18 @@ CreateWindowTitlebarButtons(TwmWindow *tmp_win) void SetHighlightPixmap(char *filename) { - Pixmap pm = GetBitmap(filename); + unsigned width = 0; + unsigned height = 0; + + Pixmap pm = FindBitmap(filename, &width, &height); if (pm) { if (Scr->hilitePm) { XFreePixmap(dpy, Scr->hilitePm); } Scr->hilitePm = pm; - Scr->hilite_pm_width = (int) JunkWidth; - Scr->hilite_pm_height = (int) JunkHeight; + Scr->hilite_pm_width = (int) width; + Scr->hilite_pm_height = (int) height; } } |