1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

Option to disable clip title

Completely disable clip caption.

Original-patch-by: Alexey Voinov <voins@altlinux.ru>
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
This commit is contained in:
Alexey I. Froloff
2010-09-10 20:51:04 +04:00
committed by Carlos R. Mafra
parent 8d4819c7ea
commit 790917a8e7
3 changed files with 6 additions and 1 deletions

View File

@@ -422,6 +422,8 @@ typedef struct WPreferences {
RImage *swtileImage;
RImage *swbackImage[9];
int show_clip_title;
struct {
unsigned int nodock:1; /* don't display the dock */
unsigned int noclip:1; /* don't display the clip */

View File

@@ -466,6 +466,8 @@ WDefaultEntry optionList[] = {
NULL, getFont, setIconTitleFont, NULL, NULL},
{"ClipTitleFont", DEF_CLIP_TITLE_FONT, NULL,
NULL, getFont, setClipTitleFont, NULL, NULL},
{"ShowClipTitle", "YES", NULL,
&wPreferences.show_clip_title, getBool, NULL, NULL, NULL},
{"LargeDisplayFont", DEF_WORKSPACE_NAME_FONT, NULL,
NULL, getFont, setLargeDisplayFont, NULL, NULL},
{"HighlightColor", "white", NULL,

View File

@@ -1181,6 +1181,7 @@ void wClipIconPaint(WAppIcon * aicon)
tx = CLIP_BUTTON_SIZE * ICON_SIZE / 64;
if(wPreferences.show_clip_title)
WMDrawString(scr->wmscreen, win, color, scr->clip_title_font, tx, ty, ws_name, length);
/*WMDrawString(scr->wmscreen, win, color, scr->clip_title_font, 4,
2, ws_name, length); */