MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / windowFocus

Method windowFocus

src/main/java/field/graphics/Windows.java:120–135  ·  view source on GitHub ↗
(long window, boolean focused)

Source from the content-addressed store, hash-verified

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();

Callers 1

registerMethod · 0.45

Calls 7

checkClassLoaderMethod · 0.95
windowFocusMethod · 0.95
checkThreadMethod · 0.95
interruptMethod · 0.80
getMethod · 0.65
runMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected