Alopex

Check-in [b705aa3509]

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

Overview
Comment:testing fix for SDL games & adjusted floating window mouse handling
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | master
Files: files | file ages | folders
SHA3-256:b705aa3509c5be48c04c4d60b41aa1671d024c869a57e777189fcc19fa0eae6a
User & Date: jesse@mccluresk9.com 2014-02-16 20:57:53
Context
2014-02-17
00:44
removed binary check-in: 165cae127f user: jesse@mccluresk9.com tags: trunk, master
2014-02-16
20:57
testing fix for SDL games & adjusted floating window mouse handling check-in: b705aa3509 user: jesse@mccluresk9.com tags: trunk, master
2014-02-14
17:30
added link to status tool check-in: a8e9a48f1a user: jesse@mccluresk9.com tags: trunk, master
Changes

Changes to TODO.

1

2


add option for fixed-color tag icons

>

1
2
3

add None option for keybinding modifiers.
add option for fixed-color tag icons

Added alopex.

cannot compute difference between binary files

Changes to src/xlib.c.

229
230
231
232
233
234
235


236
237
238
239
240
241
242
...
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451

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


		XRaiseWindow(dpy, c->win);
	}
	else {
		XWindowChanges wc;
		wc.sibling = m->container->win;
		wc.stack_mode = Below;
		XConfigureWindow(dpy, c->win, CWSibling | CWStackMode, &wc);
................................................................................
	int dx, dy;
	int xx = e->x_root, yy = e->y_root;
	while (True) {
		//XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
		expose(ev);
		XMaskEvent(dpy, PointerMotionMask | ButtonReleaseMask, &ee);
		if (ee.type == ButtonRelease) break;
		XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
if (!(c->flags & WIN_FLOAT)) {
	c->flags |= WIN_FLOAT;
	tile();
c->x = xx - c->w / 2;
c->y = yy - c->h / 2;
if (c->x + c->w > m->x + m->w) c->w = m->x + m->w - c->x;
if (c->y + c->h > m->y + m->h) c->h = m->y + m->h - c->y;
if (c->x < m->x) c->x = m->x;
if (c->y < m->y) c->y = m->y;
}
		dx = ee.xbutton.x_root - xx; xx = ee.xbutton.x_root;
		dy = ee.xbutton.y_root - yy; yy = ee.xbutton.y_root;
		if (b == 1) { c->x += dx; c->y += dy; }
		else if (b == 3) { c->w += dx; c->h += dy; }
	}
	XUngrabPointer(dpy, CurrentTime);
}







>
>







 







<



|
|
|
|
|
|
<







229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
...
429
430
431
432
433
434
435

436
437
438
439
440
441
442
443
444

445
446
447
448
449
450
451

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);
................................................................................
	int dx, dy;
	int xx = e->x_root, yy = e->y_root;
	while (True) {
		//XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
		expose(ev);
		XMaskEvent(dpy, PointerMotionMask | ButtonReleaseMask, &ee);
		if (ee.type == ButtonRelease) break;

if (!(c->flags & WIN_FLOAT)) {
	c->flags |= WIN_FLOAT;
	tile();
if (xx < c->x) c->x = xx;
if (xx > c->x + c->w) c->x = xx - c->w;
if (yy < c->y) c->y = yy;
if (yy > c->y + c->h) c->y = yy - c->h;
}
		XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);

		dx = ee.xbutton.x_root - xx; xx = ee.xbutton.x_root;
		dy = ee.xbutton.y_root - yy; yy = ee.xbutton.y_root;
		if (b == 1) { c->x += dx; c->y += dy; }
		else if (b == 3) { c->w += dx; c->h += dy; }
	}
	XUngrabPointer(dpy, CurrentTime);
}

Changes to stat.

1
2
3
4
5
6


7
#!/bin/bash
# ridiculously simple example status script
# for a better example written in C, see:
#   https://github.com/TrilbyWhite/junkdrawer/blob/master/lagopus.c




while :; do echo "&& {i 11} $(date +%H:%M) &"; sleep 60; done





<
>
>
|
1
2
3
4
5

6
7
8
#!/bin/bash
# ridiculously simple example status script
# for a better example written in C, see:
#   https://github.com/TrilbyWhite/junkdrawer/blob/master/lagopus.c


echo
sleep 10
while :; do echo "&& {i 11} $(date +%H:%M) &"; sleep 10; done