From 8badbdef38ce843dc443ddee219eda4040ef2cd5 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 5 Mar 2014 09:33:39 +0100 Subject: Now taskbar with notab can be specified in system.XWinrc --- xorg-server/hw/xwin/winprefsyacc.y | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'xorg-server/hw/xwin/winprefsyacc.y') diff --git a/xorg-server/hw/xwin/winprefsyacc.y b/xorg-server/hw/xwin/winprefsyacc.y index 73fb5d56e..38bb510a8 100644 --- a/xorg-server/hw/xwin/winprefsyacc.y +++ b/xorg-server/hw/xwin/winprefsyacc.y @@ -76,6 +76,8 @@ static void OpenStyles(void); static void AddStyleLine(char *matchstr, unsigned long style); static void CloseStyles(void); +static void SetNoTrayIcon(void); + static void OpenSysMenu(void); static void AddSysMenuLine(char *matchstr, char *menuname, int pos); static void CloseSysMenu(void); @@ -104,6 +106,8 @@ extern int yylex(void); %token DEFAULTICON %token ICONS %token STYLES +%token TASKBAR +%token NOTAB %token TOPMOST %token MAXIMIZE %token MINIMIZE @@ -151,6 +155,7 @@ command: defaulticon | menu | icons | styles + | taskbar | sysmenu | rootmenu | defaultsysmenu @@ -226,6 +231,16 @@ stylelist: styleline styles: STYLES LB {OpenStyles();} newline_or_nada stylelist RB {CloseStyles();} ; +taskbarline: STRING NOTAB NEWLINE newline_or_nada { SetNoTrayIcon(); free($1); } + ; + +taskbarlist: taskbarline + | taskbarline taskbarlist + ; + +taskbar: TASKBAR LB newline_or_nada taskbarlist RB + ; + atspot: { $$=AT_END; } | ATSTART { $$=AT_START; } | ATEND { $$=AT_END; } @@ -419,6 +434,13 @@ CloseStyles (void) { } +static void +SetNoTrayIcon (void) +{ + pref.fNoTrayIcon=TRUE; +} + + static void OpenSysMenu (void) { -- cgit v1.2.3