mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +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:
committed by
Carlos R. Mafra
parent
8d4819c7ea
commit
790917a8e7
@@ -422,6 +422,8 @@ typedef struct WPreferences {
|
|||||||
RImage *swtileImage;
|
RImage *swtileImage;
|
||||||
RImage *swbackImage[9];
|
RImage *swbackImage[9];
|
||||||
|
|
||||||
|
int show_clip_title;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
unsigned int nodock:1; /* don't display the dock */
|
unsigned int nodock:1; /* don't display the dock */
|
||||||
unsigned int noclip:1; /* don't display the clip */
|
unsigned int noclip:1; /* don't display the clip */
|
||||||
|
|||||||
@@ -466,6 +466,8 @@ WDefaultEntry optionList[] = {
|
|||||||
NULL, getFont, setIconTitleFont, NULL, NULL},
|
NULL, getFont, setIconTitleFont, NULL, NULL},
|
||||||
{"ClipTitleFont", DEF_CLIP_TITLE_FONT, NULL,
|
{"ClipTitleFont", DEF_CLIP_TITLE_FONT, NULL,
|
||||||
NULL, getFont, setClipTitleFont, NULL, NULL},
|
NULL, getFont, setClipTitleFont, NULL, NULL},
|
||||||
|
{"ShowClipTitle", "YES", NULL,
|
||||||
|
&wPreferences.show_clip_title, getBool, NULL, NULL, NULL},
|
||||||
{"LargeDisplayFont", DEF_WORKSPACE_NAME_FONT, NULL,
|
{"LargeDisplayFont", DEF_WORKSPACE_NAME_FONT, NULL,
|
||||||
NULL, getFont, setLargeDisplayFont, NULL, NULL},
|
NULL, getFont, setLargeDisplayFont, NULL, NULL},
|
||||||
{"HighlightColor", "white", NULL,
|
{"HighlightColor", "white", NULL,
|
||||||
|
|||||||
@@ -1181,6 +1181,7 @@ void wClipIconPaint(WAppIcon * aicon)
|
|||||||
|
|
||||||
tx = CLIP_BUTTON_SIZE * ICON_SIZE / 64;
|
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, tx, ty, ws_name, length);
|
||||||
/*WMDrawString(scr->wmscreen, win, color, scr->clip_title_font, 4,
|
/*WMDrawString(scr->wmscreen, win, color, scr->clip_title_font, 4,
|
||||||
2, ws_name, length); */
|
2, ws_name, length); */
|
||||||
|
|||||||
Reference in New Issue
Block a user