X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fmain.c;h=52b889c78710a50e9dc45316cf6edc2a1257e7ef;hb=b3fe26e023d4f1cafbadd383574bc0971291f784;hp=125ebb60901f435b521384ebab86caf3a5244c5c;hpb=ece65f3e9d935ad4ca0b6f9d626288908c2ad59e;p=xournal.git diff --git a/src/main.c b/src/main.c index 125ebb6..52b889c 100644 --- a/src/main.c +++ b/src/main.c @@ -174,7 +174,7 @@ void init_stuff (int argc, char *argv[]) dev_list = gdk_devices_list(); while (dev_list != NULL) { device = (GdkDevice *)dev_list->data; - if (device->source == GDK_SOURCE_PEN || device->source == GDK_SOURCE_ERASER) { + if (device->source != GDK_SOURCE_MOUSE) { /* get around a GDK bug: map the valuator range CORRECTLY to [0,1] */ #if ENABLE_XINPUT_BUGFIX gdk_device_set_axis_use(device, 0, GDK_AXIS_IGNORE); @@ -183,6 +183,7 @@ void init_stuff (int argc, char *argv[]) gdk_device_set_mode(device, GDK_MODE_SCREEN); can_xinput = TRUE; } + else gdk_device_set_mode(device, GDK_MODE_DISABLED); dev_list = dev_list->next; } if (!can_xinput)