summaryrefslogtreecommitdiff
path: root/Kernel/ProcessGUI.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-15 08:22:07 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-15 08:23:13 +0100
commit6f61eb4a87fd12f07cc79708309c8b2c78f2de67 (patch)
treea3a66e8fd60361004f453581cca9da2861b470e1 /Kernel/ProcessGUI.cpp
parent14712ad9c5ac7e644b4f2d28c06960e602278201 (diff)
downloadserenity-6f61eb4a87fd12f07cc79708309c8b2c78f2de67.zip
Slap an InterruptDisabler on gui$invalidate_window().
This is obviously not a permanent solution but it works now to allow the windowing system to withstand invalidation spam.
Diffstat (limited to 'Kernel/ProcessGUI.cpp')
-rw-r--r--Kernel/ProcessGUI.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/ProcessGUI.cpp b/Kernel/ProcessGUI.cpp
index 4f849e4e85..f4ba4748d8 100644
--- a/Kernel/ProcessGUI.cpp
+++ b/Kernel/ProcessGUI.cpp
@@ -113,6 +113,7 @@ int Process::gui$invalidate_window(int window_id)
auto& window = *(*it).value;
// FIXME: This should queue up a message that the window server process can read.
// Poking into its data structures is not good.
+ InterruptDisabler disabler;
WindowManager::the().invalidate(window);
return 0;
}