Alopex

Check-in [fef6212390]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fix for gtk3 generated root-win propertynotify events
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | master
Files: files | file ages | folders
SHA3-256:fef62123904906366bbec8c0d469ca5668aeb84e05ea16f8ed14608062a30011
User & Date: jesse@mccluresk9.com 2014-02-14 01:16:18
Context
2014-02-14
11:54
FLAGS -> LIBS check-in: 02b0dbc580 user: jesse@mccluresk9.com tags: trunk, master
01:16
fix for gtk3 generated root-win propertynotify events check-in: fef6212390 user: jesse@mccluresk9.com tags: trunk, master
2014-02-13
23:00
seperate clean + distclean check-in: f387fa818a user: jesse@mccluresk9.com tags: trunk, master
Changes

Changes to src/xlib.c.

557
558
559
560
561
562
563
564
565
566

567
568
569
570
571
572
573
}

void propertynotify(XEvent *ev) {
	XPropertyEvent *e = &ev->xproperty;
	Client *c;
	if (e->window == root) {
		char *cmd;
		XFetchName(dpy, root, &cmd);
		if (strncmp("ALOPEX: ", cmd, 8) == 0) command(cmd + 8);
		if (cmd) XFree(cmd);

	}
	if ( !(c=wintoclient(e->window)) ) return;
	if (e->atom == XA_WM_NAME) get_name(c);
	else if (e->atom == XA_WM_HINTS) get_hints(c);
	else if (e->atom == XA_WM_CLASS) apply_rules(c);
	// icon ?
	else return;







|


>







557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
}

void propertynotify(XEvent *ev) {
	XPropertyEvent *e = &ev->xproperty;
	Client *c;
	if (e->window == root) {
		char *cmd;
		if (!XFetchName(dpy, root, &cmd)) return;
		if (strncmp("ALOPEX: ", cmd, 8) == 0) command(cmd + 8);
		if (cmd) XFree(cmd);
		return;
	}
	if ( !(c=wintoclient(e->window)) ) return;
	if (e->atom == XA_WM_NAME) get_name(c);
	else if (e->atom == XA_WM_HINTS) get_hints(c);
	else if (e->atom == XA_WM_CLASS) apply_rules(c);
	// icon ?
	else return;