fix: click on trays of wine app

Change-Id: I74be647324e30cd482d8faecc49b40bfb012f813
This commit is contained in:
listenerri 2018-11-29 16:39:30 +08:00
parent b9de38a404
commit 10da46b64b
Notes: gerrit 2018-11-30 14:44:54 +08:00
Verified+1: <jenkins@deepin.com>
Code-Review+2: listenerri <listenerri@gmail.com>
Submitted-by: listenerri <listenerri@gmail.com>
Submitted-at: Fri, 30 Nov 2018 14:44:54 +0800
Reviewed-on: https://cr.deepin.io/40160
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -144,6 +144,13 @@ void XWindowTrayWidget::configContainerPosition()
xcb_configure_window(c, m_containerWid,
XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT,
containerVals);
// move the actual tray window to {0,0}, because tray icons from some wine
// applications (QQ, TIM, etc...) may somehow moved to very long distance positions.
const uint32_t trayVals[2] = { 0, 0 };
xcb_configure_window(c, m_windowId, XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y, trayVals);
xcb_flush(c);
}