seat: don't break in notify_output_create
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Thu, 17 Apr 2014 14:53:26 +0000 (07:53 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 21 Apr 2014 21:38:14 +0000 (14:38 -0700)
If more than one input device maps to the new output, then we need
to map all devices to that output... not just the first device.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=77576

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/libinput-seat.c
src/udev-seat.c

index 358c9fd..8bf538c 100644 (file)
@@ -320,7 +320,6 @@ notify_output_create(struct wl_listener *listener, void *data)
                if (device->output_name &&
                    strcmp(output->name, device->output_name) == 0) {
                        evdev_device_set_output(device, output);
-                       break;
                }
 }
 
index f875e09..5e018de 100644 (file)
@@ -363,7 +363,6 @@ notify_output_create(struct wl_listener *listener, void *data)
                if (device->output_name &&
                    strcmp(output->name, device->output_name) == 0) {
                        evdev_device_set_output(device, output);
-                       break;
                }
 }