Alopex

Check-in [c0309f8da5]

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

Overview
Comment:fixed get_size use of min_(width_height)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | master
Files: files | file ages | folders
SHA3-256:c0309f8da5f4c41ac6ddb8d3de266ee0addbaa84948edbb16702e9d6d55959d4
User & Date: jesse@mccluresk9.com 2014-03-31 18:19:29
Context
2014-05-06
23:43
added debug code to resource loading check-in: 4313a4b5b6 user: jesse@mccluresk9.com tags: trunk, master
2014-03-31
18:19
fixed get_size use of min_(width_height) check-in: c0309f8da5 user: jesse@mccluresk9.com tags: trunk, master
2014-03-29
18:45
fixed typo in configurerequest which lead to incorrect window sizes check-in: 4575c6d08f user: jesse@mccluresk9.com tags: trunk, master
Changes

Changes to src/xlib.c.

424
425
426
427
428
429
430
431

432
433
434
435
436
437
438
	long ret;
	XSizeHints hint;
	if (!(XGetWMNormalHints(dpy,c->win,&hint,&ret))) hint.flags = 0;
	if (hint.flags & PBaseSize) {
		c->w = hint.base_width; c->h = hint.base_height;
	}
	else if (hint.flags & PMinSize) {
		c->w = hint.min_width; c->h = hint.min_height;

	}
	return 0;
}

/**** EVENT HANDLERS ****/

void buttonpress(XEvent *ev) {







|
>







424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
	long ret;
	XSizeHints hint;
	if (!(XGetWMNormalHints(dpy,c->win,&hint,&ret))) hint.flags = 0;
	if (hint.flags & PBaseSize) {
		c->w = hint.base_width; c->h = hint.base_height;
	}
	else if (hint.flags & PMinSize) {
		if (c->w < hint.min_width) c->w = hint.min_width;
		if (c->h < hint.min_height) c->h = hint.min_height;
	}
	return 0;
}

/**** EVENT HANDLERS ****/

void buttonpress(XEvent *ev) {