From: David Herrmann Date: Sat, 26 May 2012 11:47:23 +0000 (+0200) Subject: main: poll video devices on hotplug X-Git-Tag: kmscon-7~961 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=625ae94daa378ed46dee16fe6aa268c38a319c43;p=platform%2Fupstream%2Fkmscon.git main: poll video devices on hotplug When the monitor notifies us about an hoptplug event, then we need to poll the current video device. Otherwise, we might miss hotplugged monitors. Signed-off-by: David Herrmann --- diff --git a/src/main.c b/src/main.c index 9bd1782..5253d1a 100644 --- a/src/main.c +++ b/src/main.c @@ -219,6 +219,10 @@ static void monitor_event(struct uterm_monitor *mon, uterm_input_remove_dev(seat->input, ev->dev_node); break; case UTERM_MONITOR_HOTPLUG_DEV: + seat = ev->seat_data; + if (!seat || seat->vdev != ev->dev) + break; + uterm_video_poll(seat->video); break; } }