mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
- removed configure.in. use only autoconf 2.5x fom now
- fixed a bug and memleak in WMBox code. - updated some translations - fixed some bug in the menu code about drawing disabled entries. - fixed Clip menu not to allow selecting of "Autoraise" if "Keep On Top" is active. - Added a "Browse" button to the menu editor in WPrefs where a program to run is specified (not finished).
This commit is contained in:
17
src/menu.c
17
src/menu.c
@@ -820,10 +820,19 @@ paintEntry(WMenu *menu, int index, int selected)
|
||||
ih = indicator->height;
|
||||
XSetClipMask(dpy, scr->copy_gc, indicator->mask);
|
||||
XSetClipOrigin(dpy, scr->copy_gc, 5, y+(h-ih)/2);
|
||||
if (selected)
|
||||
XSetForeground(dpy, scr->copy_gc, scr->black_pixel);
|
||||
else
|
||||
XSetForeground(dpy, scr->copy_gc, scr->mtext_pixel);
|
||||
if (selected) {
|
||||
if (entry->flags.enabled) {
|
||||
XSetForeground(dpy, scr->copy_gc, scr->black_pixel);
|
||||
} else {
|
||||
XSetForeground(dpy, scr->copy_gc, scr->dtext_pixel);
|
||||
}
|
||||
} else {
|
||||
if (entry->flags.enabled) {
|
||||
XSetForeground(dpy, scr->copy_gc, scr->mtext_pixel);
|
||||
} else {
|
||||
XSetForeground(dpy, scr->copy_gc, scr->dtext_pixel);
|
||||
}
|
||||
}
|
||||
XFillRectangle(dpy, win, scr->copy_gc, 5, y+(h-ih)/2, iw, ih);
|
||||
/*
|
||||
XCopyArea(dpy, indicator->image, win, scr->copy_gc, 0, 0,
|
||||
|
||||
Reference in New Issue
Block a user