Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1574064
 поиск   регистрация   авторизация 
 
Группа :: Графические оболочки/Icewm
Пакет: icewm

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

Патч: icewm-1.2.28-task_bar_length.patch


diff -ruN icewm-1.2.28/src/default.h icewm-1.2.28.patched/src/default.h
--- icewm-1.2.28/src/default.h	2006-10-22 22:20:55 +0800
+++ icewm-1.2.28.patched/src/default.h	2006-10-22 22:24:28 +0800
@@ -41,6 +41,8 @@
 XIV(bool, taskBarShowWindowListMenu,            true)
 XIV(bool, taskBarShowWorkspaces,                true)
 XIV(bool, taskBarShowWindows,                   true)
+XIV(int, taskBarXPos,                           0)
+XIV(int, taskBarLength,                         0)
 XIV(bool, taskBarShowShowDesktopButton,         true)
 XIV(int, taskBarButtonWidthDivisor,             3)
 #ifdef CONFIG_TRAY
@@ -258,6 +260,8 @@
     OBV("TaskBarShowWindows",                   &taskBarShowWindows,            "Show windows on the taskbar"),
     OBV("TaskBarShowShowDesktopButton",         &taskBarShowShowDesktopButton,  "Show 'show desktop' button on taskbar"),
     OBV("ShowEllipsis",                         &showEllipsis,                  "Show Ellipsis in taskbar items"),
+    OIV("TaskBarXPos",                          &taskBarXPos, 0, 16383,         "Set task bar position, in pixels from the left screen edge"),
+    OIV("TaskBarLength",                        &taskBarLength, 0, 16383,       "Set task bar length in pixels (0 for full screen)"),
 #ifdef CONFIG_TRAY
     OBV("TaskBarShowTray",                      &taskBarShowTray,               "Show windows in the tray"),
     OBV("TrayShowAllWindows",                   &trayShowAllWindows,            "Show windows from all workspaces on tray"),
diff -ruN icewm-1.2.28/src/wmtaskbar.cc icewm-1.2.28.patched/src/wmtaskbar.cc
--- icewm-1.2.28/src/wmtaskbar.cc	2006-09-11 00:12:10 +0800
+++ icewm-1.2.28.patched/src/wmtaskbar.cc	2006-10-22 22:42:33 +0800
@@ -580,6 +580,8 @@
     {
         int dx, dy, dw, dh;
         manager->getScreenGeometry(&dx, &dy, &dw, &dh);
+	if (taskBarLength != 0)
+		dw=taskBarLength;
         w = dw;
     }
 
@@ -689,8 +691,10 @@
 void TaskBar::updateLocation() {
     int dx, dy, dw, dh;
     manager->getScreenGeometry(&dx, &dy, &dw, &dh);
+    if (taskBarLength != 0)
+	    dw=taskBarLength;
 
-    int x = dx;
+    int x = dx+taskBarXPos;
     int y = dy;
     int w = 0;
     int h = 0;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005