diff options
author | marha <marha@users.sourceforge.net> | 2014-05-01 21:48:37 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2014-05-01 21:48:37 +0200 |
commit | 72c84d16dcb5acff57a408388703baf94916105f (patch) | |
tree | 7b1ac0c12478128b8695f360bd6814eca74554e8 /xorg-server/hw/xwin/winprefs.c | |
parent | f8bfd354a693f0dc868dd565fc6d4a1a2915c887 (diff) | |
download | vcxsrv-72c84d16dcb5acff57a408388703baf94916105f.tar.gz vcxsrv-72c84d16dcb5acff57a408388703baf94916105f.tar.bz2 vcxsrv-72c84d16dcb5acff57a408388703baf94916105f.zip |
Solved problem with notab and noframe styles
Diffstat (limited to 'xorg-server/hw/xwin/winprefs.c')
-rw-r--r-- | xorg-server/hw/xwin/winprefs.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/winprefs.c b/xorg-server/hw/xwin/winprefs.c index 6fff8a10d..3d21066f4 100644 --- a/xorg-server/hw/xwin/winprefs.c +++ b/xorg-server/hw/xwin/winprefs.c @@ -771,3 +771,24 @@ winOverrideStyle(char *res_name, char *res_class, char *wmName) /* Didn't find the style, fail gracefully */ return STYLE_NONE; } + +/* + * Check for a match of the window class to one specified in the + * TASKBAR{} section in the prefs file + */ +unsigned long +winOverrideTaskbar(char *res_name, char *res_class, char *wmName) +{ + int i; + + for (i=0; i<pref.taskbarItems; i++) { + if ((res_name && !strcmp(pref.taskbar[i].match, res_name)) || + (res_class && !strcmp(pref.taskbar[i].match, res_class)) || + (wmName && strstr(wmName, pref.taskbar[i].match))) { + if (pref.taskbar[i].type) return pref.taskbar[i].type; + } + } + + /* Didn't find a taskbar type */ + return TASKBAR_NONE; +}
\ No newline at end of file |