summaryrefslogtreecommitdiff
path: root/src/iconmgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/iconmgr.c')
-rw-r--r--src/iconmgr.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/iconmgr.c b/src/iconmgr.c
index ca7b307..80457a1 100644
--- a/src/iconmgr.c
+++ b/src/iconmgr.c
@@ -90,7 +90,7 @@ CreateIconManagers(void)
&background);
p->w = XCreateSimpleWindow(dpy, Scr->Root,
- JunkX, JunkY, p->width, p->height, 1,
+ JunkX, JunkY, (unsigned)p->width, (unsigned)p->height, 1,
Scr->Black, background);
snprintf(str, sizeof(str), "%s Icon Manager", p->name);
@@ -429,11 +429,11 @@ WList *AddIconManager(TwmWindow *tmp_win)
PackIconManager(ip);
XMapWindow(dpy, tmp->w);
- XSaveContext(dpy, tmp->w, IconManagerContext, (caddr_t) tmp);
- XSaveContext(dpy, tmp->w, TwmContext, (caddr_t) tmp_win);
- XSaveContext(dpy, tmp->w, ScreenContext, (caddr_t) Scr);
- XSaveContext(dpy, tmp->icon, TwmContext, (caddr_t) tmp_win);
- XSaveContext(dpy, tmp->icon, ScreenContext, (caddr_t) Scr);
+ XSaveContext(dpy, tmp->w, IconManagerContext, (XPointer) tmp);
+ XSaveContext(dpy, tmp->w, TwmContext, (XPointer) tmp_win);
+ XSaveContext(dpy, tmp->w, ScreenContext, (XPointer) Scr);
+ XSaveContext(dpy, tmp->icon, TwmContext, (XPointer) tmp_win);
+ XSaveContext(dpy, tmp->icon, ScreenContext, (XPointer) Scr);
tmp_win->list = tmp;
if (!ip->twm_win->icon)
@@ -564,7 +564,7 @@ void DrawIconManagerBorder(WList *tmp)
{
XSetForeground(dpy, Scr->NormalGC, tmp->fore);
XDrawRectangle(dpy, tmp->w, Scr->NormalGC, 2, 2,
- tmp->width-5, tmp->height-5);
+ (unsigned)(tmp->width-5), (unsigned)(tmp->height-5));
if (tmp->active && Scr->Highlight)
XSetForeground(dpy, Scr->NormalGC, tmp->highlight);
@@ -572,9 +572,9 @@ void DrawIconManagerBorder(WList *tmp)
XSetForeground(dpy, Scr->NormalGC, tmp->back);
XDrawRectangle(dpy, tmp->w, Scr->NormalGC, 0, 0,
- tmp->width-1, tmp->height-1);
+ (unsigned)(tmp->width-1), (unsigned)(tmp->height-1));
XDrawRectangle(dpy, tmp->w, Scr->NormalGC, 1, 1,
- tmp->width-3, tmp->height-3);
+ (unsigned)(tmp->width-3), (unsigned)(tmp->height-3));
}
}
@@ -659,7 +659,7 @@ void PackIconManager(IconMgr *ip)
if (tmp->x != new_x || tmp->y != new_y ||
tmp->width != wwidth || tmp->height != wheight)
{
- XMoveResizeWindow(dpy, tmp->w, new_x, new_y, wwidth, wheight);
+ XMoveResizeWindow(dpy, tmp->w, new_x, new_y, (unsigned)wwidth, (unsigned)wheight);
tmp->row = row-1;
tmp->col = col;
@@ -680,7 +680,7 @@ void PackIconManager(IconMgr *ip)
if (newwidth == 0)
newwidth = colinc;
- XResizeWindow(dpy, ip->w, newwidth, ip->height);
+ XResizeWindow(dpy, ip->w, (unsigned)newwidth, (unsigned)ip->height);
savewidth = ip->width;
if (ip->twm_win)