[Xcb-commit] xcb-util
Vincent Torri
doursse at kemper.freedesktop.org
Fri Apr 28 11:57:54 PDT 2006
xcb-util/wm/manage.c | 12 ++++++------
xcb-util/wm/reply_formats.c | 4 ++--
xcb-util/wm/xcbwm-test.c | 4 ++--
3 files changed, 10 insertions(+), 10 deletions(-)
New commits:
diff-tree ad40c4762e625657c62ba207a77ed8b07f6a6a7e (from 0d01d5c0d69b1e9b5c18b20369c695bb5780ceb5)
Author: TORRI Vincent <torri at doursse.(none)>
Date: Fri Apr 28 20:57:35 2006 +0200
fix warnings
diff --git a/xcb-util/wm/manage.c b/xcb-util/wm/manage.c
index 8c5a29c..051ec30 100644
--- a/xcb-util/wm/manage.c
+++ b/xcb-util/wm/manage.c
@@ -18,7 +18,7 @@ void manageWindow(PropertyHandlers *prop
return;
if(attr->map_state != XCBMapStateViewable)
{
- printf("Window 0x%08lx is not mapped. Ignoring.\n", window.xid);
+ printf("Window 0x%08x is not mapped. Ignoring.\n", window.xid);
free(attr);
return;
}
@@ -27,13 +27,13 @@ void manageWindow(PropertyHandlers *prop
}
if(!wa.u.override_redirect && TableGet(byChild, window.xid))
{
- printf("Window 0x%08lx already managed. Ignoring.\n", window.xid);
+ printf("Window 0x%08x already managed. Ignoring.\n", window.xid);
free(attr);
return;
}
if(wa.u.override_redirect)
{
- printf("Window 0x%08lx has override-redirect set. Ignoring.\n", window.xid);
+ printf("Window 0x%08x has override-redirect set. Ignoring.\n", window.xid);
free(attr);
return;
}
@@ -58,7 +58,7 @@ int handleMapNotifyEvent(void *prophs, X
{
WindowAttributes wa = { TAG_VALUE };
wa.u.override_redirect = e->override_redirect;
- printf("MapNotify for 0x%08lx.\n", e->window.xid);
+ printf("MapNotify for 0x%08x.\n", e->window.xid);
manageWindow(prophs, c, e->window, wa);
return 1;
}
@@ -67,7 +67,7 @@ int handleUnmapNotifyEvent(void *data, X
{
ClientWindow *client = TableRemove(byChild, e->event.xid);
XCBWINDOW root;
- printf("UnmapNotify for 0x%08lx (received from 0x%08lx): ", e->window.xid, e->event.xid);
+ printf("UnmapNotify for 0x%08x (received from 0x%08x): ", e->window.xid, e->event.xid);
if(!client)
{
printf("not a managed window. Ignoring.\n");
@@ -75,7 +75,7 @@ int handleUnmapNotifyEvent(void *data, X
}
root = XCBSetupRootsIter(XCBGetSetup(c)).data->root;
- printf("child of 0x%08lx.\n", client->parent.xid);
+ printf("child of 0x%08x.\n", client->parent.xid);
XCBReparentWindow(c, client->child, root, 0, 0);
XCBDestroyWindow(c, client->parent);
XCBFlush(c);
diff --git a/xcb-util/wm/reply_formats.c b/xcb-util/wm/reply_formats.c
index d2e20d8..03cf65f 100644
--- a/xcb-util/wm/reply_formats.c
+++ b/xcb-util/wm/reply_formats.c
@@ -24,8 +24,8 @@ int formatGetWindowAttributesReply(XCBWI
" class = %d\n"
" bitGravity = %d\n"
" winGravity = %d\n"
- " backingBitPlanes = 0x%08lx\n"
- " backingPixel = %ld\n"
+ " backingBitPlanes = 0x%08x\n"
+ " backingPixel = %d\n"
" saveUnder = %d\n"
" mapInstalled = %d\n"
" mapState = %d\n"
diff --git a/xcb-util/wm/xcbwm-test.c b/xcb-util/wm/xcbwm-test.c
index 0f09823..87e1e70 100644
--- a/xcb-util/wm/xcbwm-test.c
+++ b/xcb-util/wm/xcbwm-test.c
@@ -96,7 +96,7 @@ void reparentWindow(XCBConnection *c, XC
values[2] = XCBEventMaskButtonPress | XCBEventMaskButtonRelease
| XCBEventMaskExposure /* | XCBEventMaskEnterWindow | XCBEventMaskLeaveWindow */;
- printf("Reparenting 0x%08lx under 0x%08lx.\n", child.xid, w.xid);
+ printf("Reparenting 0x%08x under 0x%08x.\n", child.xid, w.xid);
XCBCreateWindow(c, d, w, r, x, y,
width + LEFT + RIGHT, height + TOP + BOTTOM,
/* border_width */ 0, XCBWindowClassInputOutput, v, mask, values);
@@ -144,7 +144,7 @@ static int handleExposeEvent(void *data,
static int handleWMNameChange(void *data, XCBConnection *c, BYTE state, XCBWINDOW window, XCBATOM atom, XCBGetPropertyRep *prop)
{
ClientWindow *client = TableGet(byChild, window.xid);
- printf("WM_NAME change: Window 0x%08lx ", window.xid);
+ printf("WM_NAME change: Window 0x%08x ", window.xid);
if(!client)
{
printf("is not being managed.\n");
More information about the xcb-commit
mailing list