Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 364967
Collapse All | Expand All

(-)xlsclients-1.1.1/xlsclients.c.orig (-7 / +7 lines)
Lines 433-439 Link Here
433
    int i;
433
    int i;
434
434
435
    /*
435
    /*
436
     * get the WM_MACHINE and WM_COMMAND list of strings
436
     * get the WM_CLIENT_MACHINE and WM_COMMAND list of strings
437
     */
437
     */
438
    client_machine = xcb_get_property_reply(cs->c, cs->client_machine, NULL);
438
    client_machine = xcb_get_property_reply(cs->c, cs->client_machine, NULL);
439
    command = xcb_get_property_reply(cs->c, cs->command, NULL);
439
    command = xcb_get_property_reply(cs->c, cs->command, NULL);
Lines 539-559 Link Here
539
     * get the WM_CLIENT_MACHINE and WM_COMMAND list of strings
539
     * get the WM_CLIENT_MACHINE and WM_COMMAND list of strings
540
     */
540
     */
541
    cs->client_machine = xcb_get_property(dpy, 0, w,
541
    cs->client_machine = xcb_get_property(dpy, 0, w,
542
			    WM_CLIENT_MACHINE, XCB_GET_PROPERTY_TYPE_ANY,
542
			    XCB_ATOM_WM_CLIENT_MACHINE, XCB_GET_PROPERTY_TYPE_ANY,
543
			    0, 1000000L);
543
			    0, 1000000L);
544
    cs->command = xcb_get_property(dpy, 0, w,
544
    cs->command = xcb_get_property(dpy, 0, w,
545
			    WM_COMMAND, XCB_GET_PROPERTY_TYPE_ANY,
545
			    XCB_ATOM_WM_COMMAND, XCB_GET_PROPERTY_TYPE_ANY,
546
			    0, 1000000L);
546
			    0, 1000000L);
547
547
548
    if (verbose) {
548
    if (verbose) {
549
	cs->name = xcb_get_property(dpy, 0, w,
549
	cs->name = xcb_get_property(dpy, 0, w,
550
			    WM_NAME, XCB_GET_PROPERTY_TYPE_ANY,
550
			    XCB_ATOM_WM_NAME, XCB_GET_PROPERTY_TYPE_ANY,
551
			    0, 1000000L);
551
			    0, 1000000L);
552
	cs->icon_name = xcb_get_property(dpy, 0, w,
552
	cs->icon_name = xcb_get_property(dpy, 0, w,
553
			    WM_ICON_NAME, XCB_GET_PROPERTY_TYPE_ANY,
553
			    XCB_ATOM_WM_ICON_NAME, XCB_GET_PROPERTY_TYPE_ANY,
554
			    0, 1000000L);
554
			    0, 1000000L);
555
	cs->wm_class = xcb_get_property(dpy, 0, w,
555
	cs->wm_class = xcb_get_property(dpy, 0, w,
556
			    WM_CLASS, STRING,
556
			    XCB_ATOM_WM_CLASS, XCB_ATOM_STRING,
557
			    0, 1000000L);
557
			    0, 1000000L);
558
    }
558
    }
559
559
Lines 569-575 Link Here
569
    }
569
    }
570
570
571
    if (s) printf ("%s", s);
571
    if (s) printf ("%s", s);
572
    if (tp->type == STRING && tp->format == 8) {
572
    if (tp->type == XCB_ATOM_STRING && tp->format == 8) {
573
	printf ("%.*s", (int)tp->value_len, (char *)xcb_get_property_value(tp));
573
	printf ("%.*s", (int)tp->value_len, (char *)xcb_get_property_value(tp));
574
    } else {
574
    } else {
575
	unknown (dpy, tp->type, tp->format);
575
	unknown (dpy, tp->type, tp->format);

Return to bug 364967