While debugging JDK-8239589, I noticed that in some cases we can get a return status of S_PRESENT_MODE_CHANGED from TestCooperativeLevel.
This can happen upon a remote desktop reconnect, or when plugging / unplugging an external display, moving a window between displays, or changing the resolution of a display.
It continues to run normally, since S_PRESENT_MODE_CHANGED is not an error, but we should consider handling it by resetting the device in a similar manner to what we do in the case of a lost surface (maybe handle it like D3DERR_DEVICENOTRESET).
This can happen upon a remote desktop reconnect, or when plugging / unplugging an external display, moving a window between displays, or changing the resolution of a display.
It continues to run normally, since S_PRESENT_MODE_CHANGED is not an error, but we should consider handling it by resetting the device in a similar manner to what we do in the case of a lost surface (maybe handle it like D3DERR_DEVICENOTRESET).
- relates to
-
JDK-8239589 JavaFX UI will not repaint after reconnecting via Remote Desktop
- Resolved