Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
adc349c3
Commit
adc349c3
authored
Dec 20, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Also ignore BadWindow errors caused by XSendEvent.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ef743e41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
x11drv_main.c
dlls/winex11.drv/x11drv_main.c
+5
-2
No files found.
dlls/winex11.drv/x11drv_main.c
View file @
adc349c3
...
...
@@ -196,8 +196,11 @@ static const char * const atom_names[NB_XATOMS - FIRST_XATOM] =
*/
static
inline
BOOL
ignore_error
(
Display
*
display
,
XErrorEvent
*
event
)
{
if
((
event
->
request_code
==
X_SetInputFocus
||
event
->
request_code
==
X_ChangeWindowAttributes
)
&&
(
event
->
error_code
==
BadMatch
||
event
->
error_code
==
BadWindow
))
return
TRUE
;
if
((
event
->
request_code
==
X_SetInputFocus
||
event
->
request_code
==
X_ChangeWindowAttributes
||
event
->
request_code
==
X_SendEvent
)
&&
(
event
->
error_code
==
BadMatch
||
event
->
error_code
==
BadWindow
))
return
TRUE
;
/* the clipboard display interacts with external windows, ignore all errors */
if
(
display
==
clipboard_display
)
return
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment