summaryrefslogtreecommitdiffstats
path: root/chalk/ui/kis_canvas.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/ui/kis_canvas.cc')
-rw-r--r--chalk/ui/kis_canvas.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chalk/ui/kis_canvas.cc b/chalk/ui/kis_canvas.cc
index 01ca372ea..8ad09df3d 100644
--- a/chalk/ui/kis_canvas.cc
+++ b/chalk/ui/kis_canvas.cc
@@ -304,23 +304,23 @@ void KisCanvasWidget::initX11Support()
Display *x11Display = TQApplication::desktop()->x11Display();
- // Look at the modifier mapping and get the correct tqmasks for alt/meta
+ // Look at the modifier mapping and get the correct masks for alt/meta
XModifierKeymap *map = XGetModifierMapping(x11Display);
if (map) {
int mapIndex = 0;
- for (int tqmaskIndex = 0; tqmaskIndex < 8; tqmaskIndex++) {
+ for (int maskIndex = 0; maskIndex < 8; maskIndex++) {
for (int i = 0; i < map->max_keypermod; i++) {
if (map->modifiermap[mapIndex]) {
KeySym sym = XKeycodeToKeysym(x11Display, map->modifiermap[mapIndex], 0);
if (X11AltMask == 0 && (sym == XK_Alt_L || sym == XK_Alt_R)) {
- X11AltMask = 1 << tqmaskIndex;
+ X11AltMask = 1 << maskIndex;
}
if (X11MetaMask == 0 && (sym == XK_Meta_L || sym == XK_Meta_R)) {
- X11MetaMask = 1 << tqmaskIndex;
+ X11MetaMask = 1 << maskIndex;
}
}