From: yaoyongjie <yaoyongjie@uniontech.com> For some applications, such as bean buns, ima, The pop-up menu can be displayed normally when right clicking on the tray icon of an application for the first time, but it will not be displayed every time the tray icon of an application is right clicked in the future. doubao download url: https://www.doubao.com/download/desktop Signed-off-by: yaoyongjie <yaoyongjie@uniontech.com> Change-Id: I50d1e3a73b79a4164e53b12f461490ac0a8a540c --- server/queue.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/queue.c b/server/queue.c index abae70fc91b..1b4f1fbcbeb 100644 --- a/server/queue.c +++ b/server/queue.c @@ -3211,6 +3211,10 @@ DECL_HANDLER(send_message) case MSG_NOTIFY: list_add_tail( &recv_queue->msg_list[SEND_MESSAGE], &msg->entry ); set_queue_bits( recv_queue, QS_SENDMESSAGE ); + /* Allow the receiver to set foreground window after receiving a notify message. + * This is needed for tray icon callbacks where the application needs to + * display a popup menu in response to user clicks. */ + if (recv_queue->input) recv_queue->input->user_time = monotonic_time; break; case MSG_POSTED: list_add_tail( &recv_queue->msg_list[POST_MESSAGE], &msg->entry ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10587