[PATCH xf86-video-nested 1/3] Avoid casts, use union members
Daniel Martin
consume.noise at gmail.com
Wed Jul 11 15:27:42 PDT 2012
Just beautification.
---
src/xlibclient.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/xlibclient.c b/src/xlibclient.c
index 1aa3590..1f0d3b7 100644
--- a/src/xlibclient.c
+++ b/src/xlibclient.c
@@ -309,12 +309,12 @@ NestedClientCheckEvents(NestedClientPrivatePtr pPriv) {
switch (ev.type) {
case Expose:
NestedClientUpdateScreen(pPriv,
- ((XExposeEvent*)&ev)->x,
- ((XExposeEvent*)&ev)->y,
- ((XExposeEvent*)&ev)->x +
- ((XExposeEvent*)&ev)->width,
- ((XExposeEvent*)&ev)->y +
- ((XExposeEvent*)&ev)->height);
+ ev.xexpose.x,
+ ev.xexpose.y,
+ ev.xexpose.x +
+ ev.xexpose.width,
+ ev.xexpose.y +
+ ev.xexpose.height);
break;
case MotionNotify:
@@ -324,8 +324,8 @@ NestedClientCheckEvents(NestedClientPrivatePtr pPriv) {
}
NestedInputPostMouseMotionEvent(pPriv->dev,
- ((XMotionEvent*)&ev)->x,
- ((XMotionEvent*)&ev)->y);
+ ev.xmotion.x,
+ ev.xmotion.y);
break;
case ButtonPress:
--
1.7.11.1
More information about the xorg-devel
mailing list