Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37506511
en ru br
Репозитории ALT
S:0.96.0-alt1
5.1: 0.92.0-alt6
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
www.altlinux.org/Changes

Группа :: Графические оболочки/Window Maker
Пакет: WindowMaker

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: WindowMaker-0.92.0-alt-clipnotext.patch
Скачать


 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);*/
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin