winex11.drv: Call request_selection_contents() after the XFixes extension is initialized.
request_selection_contents() checks whether the XFixes extension is available and will start a timer to check for clipboard content updates at an interval. Running request_selection_contents() before the XFixes extension is initialized will always start a timer and sends unnecessary clipboard content change notifications, causing Office right-click menus to disappear. Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
55a9db677c
commit
6d26689484
|
@ -2064,9 +2064,8 @@ static DWORD WINAPI clipboard_thread( void *arg )
|
|||
clipboard_thread_id = GetCurrentThreadId();
|
||||
AddClipboardFormatListener( clipboard_hwnd );
|
||||
register_builtin_formats();
|
||||
request_selection_contents( clipboard_display, TRUE );
|
||||
|
||||
xfixes_init();
|
||||
request_selection_contents( clipboard_display, TRUE );
|
||||
|
||||
TRACE( "clipboard thread %04x running\n", GetCurrentThreadId() );
|
||||
while (GetMessageW( &msg, 0, 0, 0 )) DispatchMessageW( &msg );
|
||||
|
|
Loading…
Reference in New Issue