mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 13:28:05 +01:00
New titlebar button style
This patch adds new titlebar button style. Original-patch-by: Carlos Torres <vlaadbrain@operamail.com> Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
This commit is contained in:
committed by
Carlos R. Mafra
parent
cc629f342c
commit
17cc7c3c77
@@ -491,7 +491,7 @@ void wMenuRealize(WMenu * menu)
|
||||
if (menu->flags.titled) {
|
||||
twidth = WMWidthOfString(scr->menu_title_font, menu->frame->title, strlen(menu->frame->title));
|
||||
theight = menu->frame->top_width;
|
||||
twidth += theight + (wPreferences.new_style ? 16 : 8);
|
||||
twidth += theight + (wPreferences.new_style == TS_NEW ? 16 : 8);
|
||||
} else {
|
||||
twidth = 0;
|
||||
theight = 0;
|
||||
|
||||
Reference in New Issue
Block a user