mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
fixed brothr menu texture update bug
This commit is contained in:
@@ -734,6 +734,7 @@ wClientGetNormalHints(WWindow *wwin, XWindowAttributes *wattribs, Bool geometry,
|
||||
void
|
||||
GetColormapWindows(WWindow *wwin)
|
||||
{
|
||||
#ifndef NO_CRASHES
|
||||
if (wwin->cmap_windows) {
|
||||
XFree(wwin->cmap_windows);
|
||||
}
|
||||
@@ -747,4 +748,5 @@ GetColormapWindows(WWindow *wwin)
|
||||
wwin->cmap_window_no = 0;
|
||||
wwin->cmap_windows = NULL;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
10
src/menu.c
10
src/menu.c
@@ -110,6 +110,7 @@ appearanceObserver(void *self, WMNotification *notif)
|
||||
wMenuRealize(menu);
|
||||
}
|
||||
if (flags & WTextureSettings) {
|
||||
if (!menu->flags.brother)
|
||||
updateTexture(menu);
|
||||
}
|
||||
if (flags & (WTextureSettings|WColorSettings)) {
|
||||
@@ -124,10 +125,11 @@ 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,
|
||||
WNMenuAppearanceSettingsChanged, menu);
|
||||
|
||||
WMAddNotificationObserver(appearanceObserver, menu,
|
||||
WNMenuTitleAppearanceSettingsChanged, menu);
|
||||
|
||||
WMAddNotificationObserver(appearanceObserver, menu,
|
||||
WNMenuAppearanceSettingsChanged, menu);
|
||||
}
|
||||
|
||||
return menu;
|
||||
}
|
||||
|
||||
@@ -178,6 +178,15 @@
|
||||
#define SILLYNESS
|
||||
|
||||
|
||||
/*
|
||||
* Define if you're experiencing crashes when launching programs.
|
||||
* This will disable some important but not essential code.
|
||||
* Use it until we figure what's wrong.
|
||||
*/
|
||||
#undef NO_CRASHES
|
||||
|
||||
|
||||
|
||||
/*
|
||||
*..........................................................................
|
||||
* The following options WILL NOT BE MADE RUN-TIME. Please do not request.
|
||||
|
||||
Reference in New Issue
Block a user