Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37717810
en ru br
ALT Linux repositórios
S:0.96.0-alt1
5.0: 0.92.0-alt5
4.1: 0.92.0-alt2
4.0: 0.92.0-alt2
3.0: 0.91.0-alt1
+backports:0.92.0-alt0.M30.1

Group :: Desktop gráfico/Window Maker
RPM: WindowMaker

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: WindowMaker-0.92.0-alt-clipnotext.patch
Download


 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);*/
 
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009