< prev index next >
src/java.desktop/windows/classes/sun/awt/windows/WWindowPeer.java
Print this page
*** 519,536 ****
/*
* Called from native code when we have been dragged onto another screen.
*/
void draggedToNewScreen() {
- SunToolkit.executeOnEventHandlerThread((Component)target,new Runnable()
- {
- @Override
- public void run() {
displayChanged();
}
- });
- }
public void updateGC() {
int scrn = getScreenImOn();
if (screenLog.isLoggable(PlatformLogger.Level.FINER)) {
log.finer("Screen number: " + scrn);
--- 519,530 ----
*** 598,608 ****
* reflects the current display depth information, which has
* just changed).
*/
@Override
public void displayChanged() {
! updateGC();
}
/**
* Part of the DisplayChangedListener interface: components
* do not need to react to this event
--- 592,602 ----
* reflects the current display depth information, which has
* just changed).
*/
@Override
public void displayChanged() {
! SunToolkit.executeOnEventHandlerThread(target, this::updateGC);
}
/**
* Part of the DisplayChangedListener interface: components
* do not need to react to this event
< prev index next >