summaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2014-04-24 15:11:15 +0300
committerKristian Høgsberg <krh@bitplanet.net>2014-04-25 14:55:28 -0700
commit6c975faaa9310c7b9f0e723540ec64d3c2343c87 (patch)
tree247e3a4b1eadd8bc2824094c7e039ff886377372 /src/evdev.c
parentf957dfb1de37e563d3aa2a1bbe3d1e3497c76de5 (diff)
downloadweston-6c975faaa9310c7b9f0e723540ec64d3c2343c87.tar.gz
evdev: Discard events from a touchscreen paired with an unplugged output
Commit 17bccaed intended to make the events coming from a touchscreen paired with an unplugged output to be discarded, while an unpaired one would just choose a different output. However, the logic was inverted causing the opposite to happen. Later in commit 161c6c56, the default behavior was changed to map an output to a default output if the one specified via udev is not present. This change is reverted by this patch. v2: undo the change from commit 161c6c56. v3: deal with libinput too.
Diffstat (limited to 'src/evdev.c')
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index bc8e5efe..9d97c87c 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -602,7 +602,7 @@ notify_output_destroy(struct wl_listener *listener, void *data)
struct weston_compositor *c = device->seat->compositor;
struct weston_output *output;
- if (device->output_name) {
+ if (!device->output_name) {
output = container_of(c->output_list.next,
struct weston_output, link);
evdev_device_set_output(device, output);