Alopex

Check-in [92daba635d]

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

Overview
Comment:fixed bar bg for multimonitor
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | master
Files: files | file ages | folders
SHA3-256:92daba635df49c6db2e6b2a6ed06e5474ebad4e32a5034b48cef8e554b5a48b2
User & Date: jesse@mccluresk9.com 2014-03-07 21:12:51
Context
2014-03-08
04:37
todo check-in: 36165cd982 user: jesse@mccluresk9.com tags: trunk, master
2014-03-07
21:12
fixed bar bg for multimonitor check-in: 92daba635d user: jesse@mccluresk9.com tags: trunk, master
18:49
testing multi-monitor check-in: 98c7a5cf7f user: jesse@mccluresk9.com tags: trunk, master
Changes

Changes to src/tile.c.

79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
...
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
		/* show bar if no containers are visible */
		if (!numC && !(conf.bar_opts & BAR_HIDE)) {
			C = M->container;
			C->x = M->x;
			C->y = M->y + (conf.bar_opts & BAR_BOTTOM ? M->h-C->bar->h : 0);
			C->w = M->w;
			XMoveResizeWindow(dpy, C->win, C->x, C->y, C->w, C->bar->h);
			cairo_set_source_surface(C->bar->ctx, M->bg, -C->x, -C->y);
			cairo_paint(C->bar->ctx);
		}
		/* sort floating windows */
		// TODO: needs testing
		for (c = clients; c; c = c->next) {
			if (!(M->tags & c->tags)) continue;
			else if (c->flags & WIN_FULL_TEST) {
................................................................................
			C->y += C->bar->h;
	}
	/* hide/show the bar */
	if (C->bar->opts & BAR_HIDE) purgatory(C->win);
	else {
		int y = (C->bar->opts & BAR_BOTTOM ? C->y+C->h : C->y-C->bar->h);
		XMoveResizeWindow(dpy, C->win, C->x, y, C->w, C->bar->h);
		cairo_set_source_surface(C->bar->ctx, M->bg, -C->x, -y);
		cairo_paint(C->bar->ctx);
	}
}

Bool tile_check(Monitor *M, Client *c) {
	return ((M->tags & c->tags) && !(c->flags & WIN_FLOAT));
}







|







 







|







79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
...
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
		/* show bar if no containers are visible */
		if (!numC && !(conf.bar_opts & BAR_HIDE)) {
			C = M->container;
			C->x = M->x;
			C->y = M->y + (conf.bar_opts & BAR_BOTTOM ? M->h-C->bar->h : 0);
			C->w = M->w;
			XMoveResizeWindow(dpy, C->win, C->x, C->y, C->w, C->bar->h);
			cairo_set_source_surface(C->bar->ctx, M->bg, M->x - C->x, M->y - C->y);
			cairo_paint(C->bar->ctx);
		}
		/* sort floating windows */
		// TODO: needs testing
		for (c = clients; c; c = c->next) {
			if (!(M->tags & c->tags)) continue;
			else if (c->flags & WIN_FULL_TEST) {
................................................................................
			C->y += C->bar->h;
	}
	/* hide/show the bar */
	if (C->bar->opts & BAR_HIDE) purgatory(C->win);
	else {
		int y = (C->bar->opts & BAR_BOTTOM ? C->y+C->h : C->y-C->bar->h);
		XMoveResizeWindow(dpy, C->win, C->x, y, C->w, C->bar->h);
		cairo_set_source_surface(C->bar->ctx, M->bg, M->x - C->x, M->y - y);
		cairo_paint(C->bar->ctx);
	}
}

Bool tile_check(Monitor *M, Client *c) {
	return ((M->tags & c->tags) && !(c->flags & WIN_FLOAT));
}