Skip to content

Commit

Permalink
improve dialog_highlighter
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Dec 19, 2023
1 parent 04bf3b1 commit 7a8c6ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

2023/12/19
* 修复API注释(感谢俊杰提供补丁)
* 修复关闭没有动画的高亮对话框后立刻再关闭一个有动画的窗口的崩溃问题(感谢智明提供补丁)

2023/12/18
* 修复lldb获取变量的时候返回为空值的问(感谢智明提供补丁)
Expand Down
5 changes: 4 additions & 1 deletion src/window_manager/window_manager_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ static ret_t window_manager_default_open_window(widget_t* widget, widget_t* wind

static ret_t window_manager_idle_destroy_window(const idle_info_t* info) {
widget_t* win = WIDGET(info->ctx);
widget_destroy(win);
widget_destroy_sync(win);

return RET_OK;
}
Expand Down Expand Up @@ -796,6 +796,9 @@ static ret_t window_manager_default_close_window(widget_t* widget, widget_t* win

widget_remove_child(widget, window);
idle_add(window_manager_idle_destroy_window, window);
if (wm->dialog_highlighter != NULL && wm->dialog_highlighter->dialog == window) {
window_manager_default_dialog_highlighter_destroy(widget);
}
/* 这里是解决没有结束动画,但是 prev_win 是高亮的对话框的情况 */
prev_win = window_manager_get_top_window(widget);
if (widget_is_keyboard(prev_win)) {
Expand Down

0 comments on commit 7a8c6ce

Please sign in to comment.