Alopex

Check-in [282e275f8f]

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

Overview
Comment:reverting 0ad fix due to unintended side effects
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | master
Files: files | file ages | folders
SHA3-256:282e275f8fdfbfb6bbb01b5ca3b804e66f3dfa8b4c337a524f3a6394cabb4e38
User & Date: jesse@mccluresk9.com 2014-02-18 00:28:54
Context
2014-02-19
19:03
fixed no-bar bug for monocle layout without clients check-in: 9e3fb049e2 user: jesse@mccluresk9.com tags: trunk, master
2014-02-18
00:28
reverting 0ad fix due to unintended side effects check-in: 282e275f8f user: jesse@mccluresk9.com tags: trunk, master
2014-02-17
00:44
removed binary check-in: 165cae127f user: jesse@mccluresk9.com tags: trunk, master
Changes

Changes to src/xlib.c.

229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
...
447
448
449
450
451
452
453

454
455
456
457
458
459
460
...
463
464
465
466
467
468
469



470
471
472
473
474
475
476

int set_focus() {
	Client *c = winmarks[1];
	if (!c) return 1;
	Window win; int rev;
	/* raise window */
	if (c->flags & WIN_FLOAT) {
// TESTING A WORKAROUND FOR SDL GAMES:
if (c->flags & WIN_FOCUS)
		XRaiseWindow(dpy, c->win);
	}
	else {
		XWindowChanges wc;
		wc.sibling = m->container->win;
		wc.stack_mode = Below;
		XConfigureWindow(dpy, c->win, CWSibling | CWStackMode, &wc);
................................................................................
		if (b == 1) { c->x += dx; c->y += dy; }
		else if (b == 3) { c->w += dx; c->h += dy; }
	}
	XUngrabPointer(dpy, CurrentTime);
}

void configurerequest(XEvent *ev) {

	XConfigureRequestEvent *e = &ev->xconfigurerequest;
	Client *c;
	if ( (c=wintoclient(e->window)) ) {
		if ( (e->value_mask & CWWidth) && (e->value_mask & CWHeight) ) {
			if ( (e->width == m->w) && (e->height == m->h) ) {
				c->flags |= WIN_FULL;
				tile();
................................................................................
				if (e->value_mask & CWWidth) c->w = e->width;
				if (e->value_mask & CWHeight) c->w = e->height;
				// TODO x and y
			}
		}
	}
	if (!c || (c->flags & WIN_FLOAT) ) {



		XWindowChanges wc;
		wc.x=e->x; wc.y=e->y; wc.width=e->width; wc.height=e->height;
		wc.sibling = e->above; wc.stack_mode = e->detail;
		XConfigureWindow(dpy, e->window, e->value_mask, &wc);
		XFlush(dpy);
	}
}







|
<







 







>







 







>
>
>







229
230
231
232
233
234
235
236

237
238
239
240
241
242
243
...
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
...
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479

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);
................................................................................
		if (b == 1) { c->x += dx; c->y += dy; }
		else if (b == 3) { c->w += dx; c->h += dy; }
	}
	XUngrabPointer(dpy, CurrentTime);
}

void configurerequest(XEvent *ev) {
fprintf(stderr,"CONFIGURE\n");
	XConfigureRequestEvent *e = &ev->xconfigurerequest;
	Client *c;
	if ( (c=wintoclient(e->window)) ) {
		if ( (e->value_mask & CWWidth) && (e->value_mask & CWHeight) ) {
			if ( (e->width == m->w) && (e->height == m->h) ) {
				c->flags |= WIN_FULL;
				tile();
................................................................................
				if (e->value_mask & CWWidth) c->w = e->width;
				if (e->value_mask & CWHeight) c->w = e->height;
				// TODO x and y
			}
		}
	}
	if (!c || (c->flags & WIN_FLOAT) ) {
fprintf(stderr,"-- CONFIGURE\n");
if (e->window == root) return;
fprintf(stderr,">> CONFIGURE\n");
		XWindowChanges wc;
		wc.x=e->x; wc.y=e->y; wc.width=e->width; wc.height=e->height;
		wc.sibling = e->above; wc.stack_mode = e->detail;
		XConfigureWindow(dpy, e->window, e->value_mask, &wc);
		XFlush(dpy);
	}
}