66 int i,
n,
twidth, width, height;
68 unsigned int wwidth, wheight,
bw,
depth;
89 if(n > (INFO_LINES - 3)) { \
90 fprintf(stderr, "Overflowing Info[] on line %d\n", n); \
91 sprintf(Info[n++], "(overflow)"); \
131 "Geometry/root (UL) = %dx%d+%d+%d (Inner: %dx%d+%d+%d)",
132 wwidth + 2 * (
bw +
t->frame_bw3D),
133 wheight + 2 * (
bw +
t->frame_bw3D) +
t->title_height,
134 x - (
bw +
t->frame_bw3D),
135 y - (
bw +
t->frame_bw3D +
t->title_height),
136 wwidth, wheight,
x,
y);
139 "Geometry/root (LR) = %dx%d-%d-%d (Inner: %dx%d-%d-%d)",
140 wwidth + 2 * (
bw +
t->frame_bw3D),
141 wheight + 2 * (
bw +
t->frame_bw3D) +
t->title_height,
142 Scr->rootw - (
x + wwidth +
bw +
t->frame_bw3D),
143 Scr->rooth - (
y + wheight +
bw +
t->frame_bw3D),
145 Scr->rootw - (
x + wwidth),
Scr->rooth - (
y + wheight));
155 t->vs->wsw->currentwspc) {
157 t->vs->wsw->currentwspc->name);
164 if(
t->icon !=
NULL) {
168 &wwidth, &wheight, &
bw, &
depth);
172 wwidth, wheight,
iwx,
iwy);
175 t->icon->w_width,
t->icon->w_height,
176 t->icon->w_x,
t->icon->w_y);
208 height =
n * (
Scr->DefaultFont.height + 2);
210 for(i = 0; i <
n; i++) {
221 if(
Scr->InfoWindow.mapped) {
224 Scr->InfoWindow.mapped =
false;
228 Scr->InfoWindow.lines =
n;
263 Scr->InfoWindow.mapped =
true;
264 Scr->InfoWindow.width = width;
265 Scr->InfoWindow.height = height;
277 const int height =
Scr->DefaultFont.height + 2;
280 Scr->InfoWindow.width,
Scr->InfoWindow.height,
281 2,
Scr->DefaultC,
off,
true,
false);
283 FB(
Scr->DefaultC.fore,
Scr->DefaultC.back);
285 for(i = 0; i <
Scr->InfoWindow.lines ; i++) {
288 (i * height) +
Scr->DefaultFont.y + 5,
char * ctopts_string(char *sep)
#define FB(fix_fore, fix_back)
void Draw3DBorder(Window w, int x, int y, int width, int height, int bw, ColorPair cp, ButtonState state, bool fill, bool forcebw)
static void Identify(TwmWindow *t)
static char Info[30][200]
void draw_info_window(void)
int OtpEffectiveDisplayPriority(TwmWindow *twm_win)
RArea RAreaNew(int x, int y, int width, int height)
Construct an RArea from given components.
void RLayoutFindTopBottomEdges(const RLayout *self, const RArea *area, int *top, int *bottom)
Figure the position (or nearest practical position) of an area in our screen layout,...
void RLayoutFindLeftRightEdges(const RLayout *self, const RArea *area, int *left, int *right)
Figure the position (or nearest practical position) of an area in our screen layout,...
A particular extent of space.
Info and control for every X Window we take over.