Skip to content

Commit

Permalink
fix: 在控制中心-vpn界面点击导出后,保存后,vpn界面依然置灰
Browse files Browse the repository at this point in the history
Log: DApplication应用初始化时设置了xcb窗口属性,导致收不到部分事件,正常情况下关闭文件选择对话框后,会收到两次FocusIn事件,一次来自底层,一次来自其他客户端,而应用中收不到其他客户端发的FocusIn事件,添加事件掩码后即可。

Bug: https://pms.uniontech.com/bug-view-220369.html
  • Loading branch information
LiHua000 committed Nov 8, 2023
1 parent 371cc12 commit fa7285b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ StartupNotificationMonitor::StartupNotificationMonitor() :
int screen = 0;

xcb_screen_t *s = xcb_aux_get_screen (QX11Info::connection(), screen);
const uint32_t select_input_val[] = { XCB_EVENT_MASK_PROPERTY_CHANGE };
const uint32_t select_input_val[] = { XCB_EVENT_MASK_PROPERTY_CHANGE | XCB_EVENT_MASK_BUTTON_PRESS };
xcb_change_window_attributes (QX11Info::connection(), s->root, XCB_CW_EVENT_MASK,
select_input_val);

Expand Down

0 comments on commit fa7285b

Please sign in to comment.