spice-input.c (4c5b97bfd0dd54dc27717ae8d1cd10e14eef1430) spice-input.c (0337e4123e62721bd0bcb4d5645fee2a31e8906d)
1/*
2 * Copyright (C) 2010 Red Hat, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 or
7 * (at your option) version 3 of the License.
8 *

--- 210 unchanged lines hidden (view full) ---

219 .position = tablet_position,
220 .wheel = tablet_wheel,
221 .buttons = tablet_buttons,
222};
223
224static void mouse_mode_notifier(Notifier *notifier, void *data)
225{
226 QemuSpicePointer *pointer = container_of(notifier, QemuSpicePointer, mouse_mode);
1/*
2 * Copyright (C) 2010 Red Hat, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 or
7 * (at your option) version 3 of the License.
8 *

--- 210 unchanged lines hidden (view full) ---

219 .position = tablet_position,
220 .wheel = tablet_wheel,
221 .buttons = tablet_buttons,
222};
223
224static void mouse_mode_notifier(Notifier *notifier, void *data)
225{
226 QemuSpicePointer *pointer = container_of(notifier, QemuSpicePointer, mouse_mode);
227 bool is_absolute = qemu_input_is_absolute();
227 bool is_absolute = qemu_input_is_absolute(NULL);
228
229 if (pointer->absolute == is_absolute) {
230 return;
231 }
232
233 if (is_absolute) {
234 qemu_spice.add_interface(&pointer->tablet.base);
235 } else {

--- 25 unchanged lines hidden ---
228
229 if (pointer->absolute == is_absolute) {
230 return;
231 }
232
233 if (is_absolute) {
234 qemu_spice.add_interface(&pointer->tablet.base);
235 } else {

--- 25 unchanged lines hidden ---