summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTORRI Vincent <torri@doursse.(none)>2006-04-28 20:57:35 +0200
committerTORRI Vincent <torri@doursse.(none)>2006-04-28 20:57:35 +0200
commit41fe57c45854f5a6bc5a35519eb96da485725836 (patch)
tree829d075d0b4a16faeae950f94f04e41bf0451e1f
parent13e8e1ee16f768f0046b64668500a48ccb86d196 (diff)
fix warnings
-rw-r--r--wm/manage.c12
-rw-r--r--wm/reply_formats.c4
-rw-r--r--wm/xcbwm-test.c4
3 files changed, 10 insertions, 10 deletions
diff --git a/wm/manage.c b/wm/manage.c
index 8c5a29c..051ec30 100644
--- a/wm/manage.c
+++ b/wm/manage.c
@@ -18,7 +18,7 @@ void manageWindow(PropertyHandlers *prophs, XCBConnection *c, XCBWINDOW window,
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 *prophs, XCBConnection *c, XCBWINDOW window,
}
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, XCBConnection *c, XCBMapNotifyEvent *e)
{
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, XCBConnection *c, XCBUnmapNotifyEvent *e)
{
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, XCBConnection *c, XCBUnmapNotifyEvent *e)
}
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/wm/reply_formats.c b/wm/reply_formats.c
index d2e20d8..03cf65f 100644
--- a/wm/reply_formats.c
+++ b/wm/reply_formats.c
@@ -24,8 +24,8 @@ int formatGetWindowAttributesReply(XCBWINDOW wid, XCBGetWindowAttributesRep *rep
" 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/wm/xcbwm-test.c b/wm/xcbwm-test.c
index 0f09823..87e1e70 100644
--- a/wm/xcbwm-test.c
+++ b/wm/xcbwm-test.c
@@ -96,7 +96,7 @@ void reparentWindow(XCBConnection *c, XCBWINDOW child,
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, XCBConnection *c, XCBExposeEvent *e)
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");