Without this, there are still GdkMonitors present for displays that are
present but disconnected (such as when a laptop disables the internal
display to connect to an external monitor).
char *path, *path_lower;
DISPLAYCONFIG_RATIONAL *refresh;
- if ((dispconf_paths[path_index].flags & DISPLAYCONFIG_PATH_ACTIVE) == 0)
- continue;
-
tdn.header.type = DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME;
tdn.header.size = sizeof (tdn);
tdn.header.adapterId = dispconf_paths[path_index].targetInfo.adapterId;
if (w32mon == NULL)
continue;
+ if ((dispconf_paths[path_index].flags & DISPLAYCONFIG_PATH_ACTIVE) == 0)
+ {
+ w32mon->remove = TRUE;
+ continue;
+ }
+
mon = GDK_MONITOR (w32mon);
if (!tdn.flags.friendlyNameForced)