diff --git a/surfman/src/display.c b/surfman/src/display.c index b91d77c..e7a03da 100644 --- a/surfman/src/display.c +++ b/surfman/src/display.c @@ -269,6 +269,11 @@ display_update_monitors (struct plugin *p, { struct monitor_info *info = get_monitor_info (p, monitors[i]); + /* The plugin does not recognize the monitor, or it was yanked quickly + * after being plugged. */ + if (info == NULL) + continue; + for (j = 0; j < DISPLAY_MONITOR_MAX; j++) { if (display[j].plugin == p &&