fix menubar behavior issue
no key_press and key_release after destroying caret under X11 missing some key_press events menu text color issue
This commit is contained in:
@@ -240,6 +240,11 @@ namespace API
|
||||
return &reinterpret_cast<restrict::core_window_t*>(wd)->drawer.graphics;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void delay_restore(bool enable)
|
||||
{
|
||||
restrict::bedrock.delay_restore(enable ? 0 : 1);
|
||||
}
|
||||
}//end namespace dev
|
||||
|
||||
//exit
|
||||
@@ -1203,17 +1208,6 @@ namespace API
|
||||
}
|
||||
}
|
||||
|
||||
void restore_menubar_taken_window()
|
||||
{
|
||||
auto wd = restrict::bedrock.get_menubar_taken();
|
||||
if(wd)
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
restrict::window_manager.set_focus(wd, false);
|
||||
restrict::window_manager.update(wd, true, false);
|
||||
}
|
||||
}
|
||||
|
||||
bool is_window_zoomed(window wd, bool ask_for_max)
|
||||
{
|
||||
auto const iwd = reinterpret_cast<restrict::core_window_t*>(wd);
|
||||
|
||||
Reference in New Issue
Block a user