From ced24f3182a114d525149ddf40ac6cb9cba0cdce Mon Sep 17 00:00:00 2001 From: id Date: Sat, 19 Jun 1999 00:33:55 +0000 Subject: [PATCH] fix a small bug relate to modelock. --- src/framewin.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/framewin.c b/src/framewin.c index 07394f9e..ae48c44c 100644 --- a/src/framewin.c +++ b/src/framewin.c @@ -654,7 +654,7 @@ renderTexture(WScreen *scr, WTexture *texture, int width, int height, #ifdef XKB_BUTTON_HINT if (language) { - timg = RGetSubImage(img, bwidth, 0, bwidth, bheight); + timg = RGetSubImage(img, bwidth * left, 0, bwidth, bheight); } else timg = NULL; #endif @@ -792,9 +792,10 @@ updateTexture(WFrameWindow *fwin) fwin->lbutton_back[i]); #ifdef XKB_BUTTON_HINT - if (fwin->language_button && fwin->languagebutton_back[i]) + if (fwin->language_button && fwin->languagebutton_back[i]) { XSetWindowBackgroundPixmap(dpy, fwin->language_button->window, fwin->languagebutton_back[i]); + } #endif if (fwin->right_button && fwin->rbutton_back[i])