X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fprop.c;h=d843e69dc5ea0473d3e6c409990de634665dd19b;hb=f24cd3fc9dc8c06cfec43938ef8aa3d0fddeb0b5;hp=f6559c400c722df6e870063f71b27dc539e5aa4e;hpb=335e8acbfc5d2824f1fd2cb67a5add8e1ed40b06;p=chaz%2Fopenbox diff --git a/openbox/prop.c b/openbox/prop.c index f6559c40..d843e69d 100644 --- a/openbox/prop.c +++ b/openbox/prop.c @@ -206,7 +206,7 @@ static gboolean get_prealloc(Window win, Atom prop, Atom type, gint size, data[i] = xdata[i]; break; case 16: - ((guint16*)data)[i] = ((guint16*)xdata)[i]; + ((guint16*)data)[i] = ((gushort*)xdata)[i]; break; case 32: ((guint32*)data)[i] = ((gulong*)xdata)[i]; @@ -245,7 +245,7 @@ static gboolean get_all(Window win, Atom prop, Atom type, gint size, (*data)[i] = xdata[i]; break; case 16: - ((guint16*)*data)[i] = ((guint16*)xdata)[i]; + ((guint16*)*data)[i] = ((gushort*)xdata)[i]; break; case 32: ((guint32*)*data)[i] = ((gulong*)xdata)[i]; @@ -383,13 +383,13 @@ gboolean prop_get_strings_utf8(Window win, Atom prop, gchar ***ret) return FALSE; } -void prop_set32(Window win, Atom prop, Atom type, guint32 val) +void prop_set32(Window win, Atom prop, Atom type, gulong val) { XChangeProperty(ob_display, win, prop, type, 32, PropModeReplace, (guchar*)&val, 1); } -void prop_set_array32(Window win, Atom prop, Atom type, guint32 *val, +void prop_set_array32(Window win, Atom prop, Atom type, gulong *val, guint num) { XChangeProperty(ob_display, win, prop, type, 32, PropModeReplace,