summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2013-12-24 07:46:48 +0800
committerRichard Grenville <[email protected]>2013-12-24 07:46:48 +0800
commit43b47ec45346c895c5c555d9771fbdfbaca387ff (patch)
tree16298b93fe0dddd995188febbea7d73bdb123f47 /common.h
parent44a13b4e767eef1985a4a34723b7cc279e1dc160 (diff)
downloadtdebase-43b47ec45346c895c5c555d9771fbdfbaca387ff.tar.gz
tdebase-43b47ec45346c895c5c555d9771fbdfbaca387ff.zip
Misc #152: Fix a spelling mistake
Fix a spelling mistake (xr_glx_hybird -> xr_glx_hybrid). Thanks to cju for reporting.
Diffstat (limited to 'common.h')
-rw-r--r--common.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/common.h b/common.h
index 6003cbf16..71ea8975b 100644
--- a/common.h
+++ b/common.h
@@ -323,7 +323,7 @@ typedef enum {
enum backend {
BKEND_XRENDER,
BKEND_GLX,
- BKEND_XR_GLX_HYBIRD,
+ BKEND_XR_GLX_HYBRID,
NUM_BKEND,
};
@@ -1491,6 +1491,11 @@ parse_backend(session_t *ps, const char *str) {
ps->o.backend = i;
return true;
}
+ // Keep compatibility with an old revision containing a spelling mistake...
+ if (!strcasecmp(str, "xr_glx_hybird")) {
+ ps->o.backend = BKEND_XR_GLX_HYBRID;
+ return true;
+ }
printf_errf("(\"%s\"): Invalid backend argument.", str);
return false;
}
@@ -1720,7 +1725,7 @@ find_toplevel(session_t *ps, Window id) {
static inline bool
bkend_use_xrender(session_t *ps) {
return BKEND_XRENDER == ps->o.backend
- || BKEND_XR_GLX_HYBIRD == ps->o.backend;
+ || BKEND_XR_GLX_HYBRID == ps->o.backend;
}
/**
@@ -1729,7 +1734,7 @@ bkend_use_xrender(session_t *ps) {
static inline bool
bkend_use_glx(session_t *ps) {
return BKEND_GLX == ps->o.backend
- || BKEND_XR_GLX_HYBIRD == ps->o.backend;
+ || BKEND_XR_GLX_HYBRID == ps->o.backend;
}
/**