WindowServer: Redraw screen when switching back from tty
This commit is contained in:
parent
ae5d961d97
commit
bab6fb76b7
Notes:
sideshowbarker
2024-07-18 11:31:23 +09:00
Author: https://github.com/ccapitalK Commit: https://github.com/SerenityOS/serenity/commit/bab6fb76b7e Pull-request: https://github.com/SerenityOS/serenity/pull/7130 Reviewed-by: https://github.com/Dexesttp Reviewed-by: https://github.com/IdanHo
1 changed files with 6 additions and 0 deletions
|
@ -1186,6 +1186,12 @@ void WindowManager::process_key_event(KeyEvent& event)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: This is fragile, the kernel should send a signal when we switch back to the WindowManager's framebuffer
|
||||||
|
if (event.type() == Event::KeyDown && (event.modifiers() & Mod_Alt) && (event.key() == Key_ExclamationPoint || event.key() == Key_1)) {
|
||||||
|
Compositor::the().invalidate_screen();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (event.type() == Event::KeyDown && (event.modifiers() == (Mod_Ctrl | Mod_Super | Mod_Shift) && event.key() == Key_I)) {
|
if (event.type() == Event::KeyDown && (event.modifiers() == (Mod_Ctrl | Mod_Super | Mod_Shift) && event.key() == Key_I)) {
|
||||||
reload_icon_bitmaps_after_scale_change();
|
reload_icon_bitmaps_after_scale_change();
|
||||||
Compositor::the().invalidate_screen();
|
Compositor::the().invalidate_screen();
|
||||||
|
|
Loading…
Add table
Reference in a new issue