< prev index next >

src/windows/classes/sun/awt/windows/WWindowPeer.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 472,489 **** /* * 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); --- 472,483 ----
*** 537,547 **** * 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 --- 531,541 ---- * 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 >