Commit 8a75f3bb authored by James Liggett's avatar James Liggett Committed by Alexandre Julliard

winex11.drv: Fix explorer regression caused by systray patch

Move systray_dock_window call to X11DRV_CreateWindow so that it can safely call SetWindowPos without having _CheckNotSysLevel crash the explorer.
parent bbd05a46
......@@ -515,10 +515,6 @@ void X11DRV_set_wm_hints( Display *display, struct x11drv_win_data *data )
/* size hints */
set_size_hints( display, data, style );
/* Dock system tray windows. */
if (ex_style & WS_EX_TRAYWINDOW)
systray_dock_window( display, data );
/* set the WM_CLIENT_MACHINE and WM_LOCALE_NAME properties */
XSetWMProperties(display, data->whole_window, NULL, NULL, NULL, 0, NULL, NULL, NULL);
......@@ -1168,6 +1164,12 @@ BOOL X11DRV_CreateWindow( HWND hwnd, CREATESTRUCTA *cs, BOOL unicode )
newPos.right, newPos.bottom, swFlag );
}
/* Dock system tray windows. */
/* Dock after the window is created so we don't have problems calling
* SetWindowPos. */
if (GetWindowLongW( hwnd, GWL_EXSTYLE ) & WS_EX_TRAYWINDOW)
systray_dock_window( display, data );
return TRUE;
failed:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment