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
74014635
Commit
74014635
authored
Nov 22, 1998
by
David Luyer
Committed by
Alexandre Julliard
Nov 22, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Queuing of deferred Expose events.
parent
4f7dc46c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
event.c
windows/event.c
+23
-7
No files found.
windows/event.c
View file @
74014635
...
...
@@ -217,14 +217,25 @@ void EVENT_ProcessEvent( XEvent *event )
if
(
TSXCheckTypedWindowEvent
(
display
,((
XAnyEvent
*
)
event
)
->
window
,
ConfigureNotify
,
&
new_event
))
{
EVENT_ProcessEvent
(
&
new_event
);
EVENT_Expose
(
pWnd
,
(
XExposeEvent
*
)
event
);
break
;
if
(
!
EVENT_Expose
(
pWnd
,
(
XExposeEvent
*
)
event
))
break
;
}
/* no luck at this time, defer Expose event for later */
if
(
!
pWnd
->
expose_event
)
pWnd
->
expose_event
=
malloc
(
sizeof
(
XExposeEvent
)
);
else
{
FIXME
(
x11
,
"can't handle more than one deferred Expose events
\n
"
);
}
*
(
pWnd
->
expose_event
)
=
*
(
XExposeEvent
*
)
event
;
/* use "type" for an event counter, it is never rechecked */
if
(
!
pWnd
->
expose_event
)
{
pWnd
->
expose_event
=
malloc
(
sizeof
(
XExposeEvent
)
);
pWnd
->
expose_event
[
0
]
=
*
(
XExposeEvent
*
)
event
;
pWnd
->
expose_event
[
0
].
type
=
1
;
}
else
{
int
i
;
i
=
++
pWnd
->
expose_event
[
0
].
type
;
pWnd
->
expose_event
=
realloc
(
pWnd
->
expose_event
,
i
*
sizeof
(
XExposeEvent
)
);
pWnd
->
expose_event
[
i
-
1
]
=
*
(
XExposeEvent
*
)
event
;
FIXME
(
x11
,
"Try and combine Expose events? %d queued.
\n
"
,
i
);
}
}
break
;
...
...
@@ -237,8 +248,13 @@ void EVENT_ProcessEvent( XEvent *event )
if
(
!
pWnd
)
return
;
EVENT_ConfigureNotify
(
pWnd
,
(
XConfigureEvent
*
)
event
);
if
(
pWnd
->
expose_event
)
{
/* process deferred Expose event */
EVENT_Expose
(
pWnd
,
pWnd
->
expose_event
);
/* process deferred Expose event(s) */
int
i
;
for
(
i
=
0
;
i
<
pWnd
->
expose_event
[
0
].
type
;
i
++
)
{
if
(
EVENT_Expose
(
pWnd
,
&
pWnd
->
expose_event
[
i
]
))
ERR
(
x11
,
"Unprocessed expose event discarded
\n
"
);
}
free
(
pWnd
->
expose_event
);
pWnd
->
expose_event
=
NULL
;
}
...
...
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