1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

fixed brothr menu texture update bug

This commit is contained in:
kojima
1999-05-19 00:57:36 +00:00
parent 8fb8355a32
commit 4ba9b80c98
3 changed files with 21 additions and 8 deletions

View File

@@ -110,7 +110,8 @@ appearanceObserver(void *self, WMNotification *notif)
wMenuRealize(menu);
}
if (flags & WTextureSettings) {
updateTexture(menu);
if (!menu->flags.brother)
updateTexture(menu);
}
if (flags & (WTextureSettings|WColorSettings)) {
wMenuPaint(menu);
@@ -124,8 +125,9 @@ appearanceObserver(void *self, WMNotification *notif)
if (flags & WTextureSettings) {
menu->frame->flags.need_texture_remake = 1;
}
if (flags & (WColorSettings|WTextureSettings))
if (flags & (WColorSettings|WTextureSettings)) {
wFrameWindowPaint(menu->frame);
}
}
}
@@ -228,13 +230,13 @@ wMenuCreate(WScreen *screen, char *title, int main_menu)
brother = 0;
menu->brother->flags.brother = 1;
menu->brother->brother = menu;
WMAddNotificationObserver(appearanceObserver, menu,
WNMenuTitleAppearanceSettingsChanged, menu);
WMAddNotificationObserver(appearanceObserver, menu,
WNMenuAppearanceSettingsChanged, menu);
}
WMAddNotificationObserver(appearanceObserver, menu,
WNMenuAppearanceSettingsChanged, menu);
WMAddNotificationObserver(appearanceObserver, menu,
WNMenuTitleAppearanceSettingsChanged, menu);
return menu;
}