mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
WindowServer: Ignore attempts to make menu windows the active window.
This commit is contained in:
parent
7c53171b0a
commit
dc200923f2
Notes:
sideshowbarker
2024-07-19 15:43:19 +09:00
Author: https://github.com/awesomekling
Commit: dc200923f2
1 changed files with 5 additions and 0 deletions
|
@ -741,6 +741,11 @@ void WSWindowManager::on_message(WSMessage& message)
|
|||
void WSWindowManager::set_active_window(WSWindow* window)
|
||||
{
|
||||
LOCKER(m_lock);
|
||||
if (window->type() == WSWindowType::Menu) {
|
||||
dbgprintf("WSWindowManager: Attempted to make a menu window active.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (window == m_active_window.ptr())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue