Alopex

Check-in [726de2392a]

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

Overview
Comment:ridiculous work around for SDL games
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | master
Files: files | file ages | folders
SHA3-256:726de2392a1f8035a49d4175801ed06be2d406a53247880246c18be00d75eddf
User & Date: jesse@mccluresk9.com 2014-02-19 21:34:30
Context
2014-03-07
18:49
testing multi-monitor check-in: 98c7a5cf7f user: jesse@mccluresk9.com tags: trunk, master
2014-02-19
21:34
ridiculous work around for SDL games check-in: 726de2392a user: jesse@mccluresk9.com tags: trunk, master
19:03
fixed no-bar bug for monocle layout without clients check-in: 9e3fb049e2 user: jesse@mccluresk9.com tags: trunk, master
Changes

Changes to src/xlib.c.

224
225
226
227
228
229
230
231
232
233
234
235
236
237











238
239
240
241
242
243
244
}

int purgatory(Window w) {
	XMoveWindow(dpy, w, purgX, purgY);
}

int set_focus() {
	Client *c = winmarks[1];
	if (!c) return 1;
	Window win; int rev;
	/* raise window */
	if (c->flags & WIN_FLOAT) {
//if (!(conditional for 0ad type windows))
		XRaiseWindow(dpy, c->win);











	}
	else {
		XWindowChanges wc;
		wc.sibling = m->container->win;
		wc.stack_mode = Below;
		XConfigureWindow(dpy, c->win, CWSibling | CWStackMode, &wc);
	}







|




<
|
>
>
>
>
>
>
>
>
>
>
>







224
225
226
227
228
229
230
231
232
233
234
235

236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
}

int purgatory(Window w) {
	XMoveWindow(dpy, w, purgX, purgY);
}

int set_focus() {
	Client *cc, *c = winmarks[1];
	if (!c) return 1;
	Window win; int rev;
	/* raise window */
	if (c->flags & WIN_FLOAT) {

		//XRaiseWindow(dpy, c->win);
		/* work around for fullscreen SDL windows */
		XWindowChanges wc;
		wc.stack_mode = Above;
		wc.sibling = m->container->win;
		XConfigureWindow(dpy, c->win, CWSibling | CWStackMode, &wc);
		for (cc = clients; cc; cc = cc->next) {
			if (cc->tags & m->tags && (cc->flags & WIN_FLOAT)) {
				wc.sibling = cc->win;
				XConfigureWindow(dpy, c->win, CWSibling | CWStackMode, &wc);
			}
		}
	}
	else {
		XWindowChanges wc;
		wc.sibling = m->container->win;
		wc.stack_mode = Below;
		XConfigureWindow(dpy, c->win, CWSibling | CWStackMode, &wc);
	}