浏览代码

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.
Andreas Kling 6 年之前
父节点
当前提交
6f61eb4a87
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Kernel/ProcessGUI.cpp

+ 1 - 0
Kernel/ProcessGUI.cpp

@@ -113,6 +113,7 @@ int Process::gui$invalidate_window(int window_id)
     auto& window = *(*it).value;
     auto& window = *(*it).value;
     // FIXME: This should queue up a message that the window server process can read.
     // FIXME: This should queue up a message that the window server process can read.
     //        Poking into its data structures is not good.
     //        Poking into its data structures is not good.
+    InterruptDisabler disabler;
     WindowManager::the().invalidate(window);
     WindowManager::the().invalidate(window);
     return 0;
     return 0;
 }
 }