(long window, boolean focused)
| 118 | @Override |
| 119 | public void windowFocus(long window, boolean focused) { |
| 120 | Runnable r = () -> { |
| 121 | checkClassLoader(); |
| 122 | GlfwCallback a = adaptors.get(window); |
| 123 | if (a != null) |
| 124 | a.windowFocus(window, focused); |
| 125 | }; |
| 126 | |
| 127 | if (checkThread()) r.run(); |
| 128 | else { |
| 129 | events.addLast(r); |
| 130 | RunLoop.main.shouldSleep.add(Windows.this); |
| 131 | RunLoop.main.interrupt(); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | @Override |
| 136 | public void windowRefresh(long window) { |
| 137 | Runnable r = () -> { |
| 138 | checkClassLoader(); |
no test coverage detected