From 72c84d16dcb5acff57a408388703baf94916105f Mon Sep 17 00:00:00 2001 From: marha Date: Thu, 1 May 2014 21:48:37 +0200 Subject: Solved problem with notab and noframe styles --- xorg-server/hw/xwin/winprefs.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'xorg-server/hw/xwin/winprefs.h') diff --git a/xorg-server/hw/xwin/winprefs.h b/xorg-server/hw/xwin/winprefs.h index 892662777..46744998d 100644 --- a/xorg-server/hw/xwin/winprefs.h +++ b/xorg-server/hw/xwin/winprefs.h @@ -66,6 +66,10 @@ typedef enum MENUCOMMANDTYPE { #define STYLE_MINIMIZE (1L<<5) /* Open a window minimized */ #define STYLE_BOTTOM (1L<<6) /* Open a window at the bottom of the Z order */ +#define TASKBAR_NONE (0L) /* Dummy the first entry */ +#define TASKBAR_NOTAB (1L) /* Force no taskbar icon */ +#define TASKBAR_NEWTAB (1L<<1) /* Force new taskbar icon */ + /* Where to place a system menu */ typedef enum MENUPOSITION { AT_START, /* Place menu at the top of the system menu */ @@ -107,6 +111,12 @@ typedef struct STYLEITEM { unsigned long type; /* What should it do? */ } STYLEITEM; +/* To redefine taskbar properties for certain window types */ +typedef struct TASKBARITEM { + char match[MENU_MAX+1]; /* What string to search for? */ + unsigned long type; /* What should it do? */ +} TASKBARITEM; + typedef struct WINPREFS { /* Menu information */ MENUPARSED *menu; /* Array of created menus */ @@ -134,6 +144,9 @@ typedef struct WINPREFS { STYLEITEM *style; int styleItems; + TASKBARITEM *taskbar; + int taskbarItems; + /* Force exit flag */ Bool fForceExit; @@ -172,6 +185,9 @@ HICON winOverrideIcon(char *res_name, char *res_class, char *wmName); unsigned long winOverrideStyle(char *res_name, char *res_class, char *wmName); +unsigned long + winOverrideTaskbar(char *res_name, char *res_class, char *wmName); + HICON winTaskbarIcon(void); HICON winOverrideDefaultIcon(int size); -- cgit v1.2.3