diff options
author | rsc <devnull@localhost> | 2005-01-07 20:07:33 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-07 20:07:33 +0000 |
commit | 931ba0b74050badec0331586636615a1afafae3a (patch) | |
tree | f87334c8d8e0b30bf0727e02edcab4eb8fcdc4f5 /src/libdraw | |
parent | 886f121bc35301c5f0d167be6bc02a1b364b2bf8 (diff) | |
download | plan9port-931ba0b74050badec0331586636615a1afafae3a.tar.gz plan9port-931ba0b74050badec0331586636615a1afafae3a.tar.bz2 plan9port-931ba0b74050badec0331586636615a1afafae3a.zip |
fix from axel
Diffstat (limited to 'src/libdraw')
-rw-r--r-- | src/libdraw/x11-init.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/libdraw/x11-init.c b/src/libdraw/x11-init.c index b7638a73..fea08e4f 100644 --- a/src/libdraw/x11-init.c +++ b/src/libdraw/x11-init.c @@ -554,8 +554,6 @@ fprint(2, "%r\n"); int drawsetlabel(char *label) { - char *argv[2]; - XClassHint classhint; XTextProperty name; /* @@ -569,23 +567,16 @@ drawsetlabel(char *label) name.format = 8; name.nitems = strlen((char*)name.value); - memset(&classhint, 0, sizeof classhint); - classhint.res_name = label; - classhint.res_class = label; - - argv[0] = label; - argv[1] = nil; - XSetWMProperties( _x.display, /* display */ _x.drawable, /* window */ &name, /* XA_WM_NAME property */ &name, /* XA_WM_ICON_NAME property */ - argv, /* XA_WM_COMMAND */ - 1, /* argc */ + nil, /* XA_WM_COMMAND */ + 0, /* argc */ nil, /* XA_WM_NORMAL_HINTS */ nil, /* XA_WM_HINTS */ - &classhint /* XA_WM_CLASSHINTS */ + nil /* XA_WM_CLASSHINTS */ ); XFlush(_x.display); return 0; |