summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-06-16 18:02:50 +0200
committerCarlos Garnacho <carlosg@gnome.org>2017-06-20 22:03:35 +0200
commitee075803655013ddd61563a905902d7c3672dbad (patch)
tree5f54b78a4c5f6e223db56479cab0f82a349c1b09
parente22c75377b4bb0be0bc21ed7a1f2f017672edbfe (diff)
downloadmutter-ee075803655013ddd61563a905902d7c3672dbad.tar.gz
backends/x11: Fix c&p issue in tablet area calculation
instead of filling in the last array value, it overwrote the previous one. https://bugzilla.gnome.org/show_bug.cgi?id=781703
-rw-r--r--src/backends/x11/meta-input-settings-x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backends/x11/meta-input-settings-x11.c b/src/backends/x11/meta-input-settings-x11.c
index 174fd3287..e111ceb22 100644
--- a/src/backends/x11/meta-input-settings-x11.c
+++ b/src/backends/x11/meta-input-settings-x11.c
@@ -609,7 +609,7 @@ meta_input_settings_x11_set_tablet_area (MetaInputSettings *settings,
area[0] = width * padding_left;
area[1] = height * padding_top;
area[2] = width - (width * padding_right);
- area[2] = height - (height * padding_bottom);
+ area[3] = height - (height * padding_bottom);
update_tablet_area (settings, device, area);
}