a LOT of minor stuff

This commit is contained in:
2022-03-05 02:41:30 +01:00
parent ce45bf2726
commit df77704d1c
12 changed files with 90 additions and 56 deletions

View File

@@ -1,8 +1,12 @@
package kernel.ui;
import lib.TermWriteable;
import kernel.ui.TermWriteable;
import kernel.peripherals.Peripherals.Peripheral;
/**
Responsable for creating window context, forwarding UI events to the context
and switching context to real screens.
**/
class WindowManager {
/**
Depends on: KernelEvents, Peripheral
@@ -45,9 +49,9 @@ class WindowManager {
});
KernelEvents.instance.onMouseUp.handle(params -> {
// if (currentMainContext != null) {
if (currentMainContext != null) {
currentMainContext.onMouseUpTrigger.trigger(params);
// }
}
});
KernelEvents.instance.onPaste.handle(text -> {