src/WindowMaker.h | 2 ++ src/defaults.c | 3 +++ src/dock.c | 5 +++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/WindowMaker.h b/src/WindowMaker.h index f1ce577..6e10325 100644 --- a/src/WindowMaker.h +++ b/src/WindowMaker.h @@ -490,6 +490,8 @@ typedef struct WPreferences { /* single click to lauch applications */ char single_click; + int show_clip_title; + struct { unsigned int nodock:1; /* don't display the dock */ unsigned int noclip:1; /* don't display the clip */ diff --git a/src/defaults.c b/src/defaults.c index 2ea652c..e874c94 100644 --- a/src/defaults.c +++ b/src/defaults.c @@ -633,6 +633,9 @@ WDefaultEntry optionList[] = { {"ClipTitleFont", DEF_CLIP_TITLE_FONT, NULL, NULL, getFont, setClipTitleFont }, + {"ShowClipTitle", "YES", NULL, + &wPreferences.show_clip_title, getBool, NULL + }, {"LargeDisplayFont",DEF_WORKSPACE_NAME_FONT, NULL, NULL, getFont, setLargeDisplayFont }, diff --git a/src/dock.c b/src/dock.c index 8e1882d..e62e5a5 100644 --- a/src/dock.c +++ b/src/dock.c @@ -1295,8 +1295,9 @@ wClipIconPaint(WAppIcon *aicon) tx = CLIP_BUTTON_SIZE*ICON_SIZE/64; - WMDrawString(scr->wmscreen, win, color, scr->clip_title_font, tx, - ty, ws_name, length); + 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);*/