whitespace
This commit is contained in:
parent
e7c9e43210
commit
3fab044f34
2 changed files with 7 additions and 4 deletions
|
@ -114,7 +114,7 @@ void event_loop()
|
||||||
XNextEvent(ob_display, &e);
|
XNextEvent(ob_display, &e);
|
||||||
|
|
||||||
event_process(&e);
|
event_process(&e);
|
||||||
had_event = TRUE;
|
had_event = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!had_event) {
|
if (!had_event) {
|
||||||
|
|
|
@ -62,7 +62,8 @@ void menu_render_full(Menu *self) {
|
||||||
items_h = self->item_h * MAX(nitems, 1);
|
items_h = self->item_h * MAX(nitems, 1);
|
||||||
|
|
||||||
if (self->label) {
|
if (self->label) {
|
||||||
RECT_SET(self->a_title->area, 0, 0, self->size.width, self->title_h);
|
RECT_SET(self->a_title->area, 0, 0, self->size.width,
|
||||||
|
self->title_h);
|
||||||
RECT_SET(self->a_title->texture[0].position, 0, 0, self->size.width,
|
RECT_SET(self->a_title->texture[0].position, 0, 0, self->size.width,
|
||||||
self->title_h);
|
self->title_h);
|
||||||
}
|
}
|
||||||
|
@ -74,8 +75,10 @@ void menu_render_full(Menu *self) {
|
||||||
if (self->label)
|
if (self->label)
|
||||||
XMoveResizeWindow(ob_display, self->title, -theme_bwidth,
|
XMoveResizeWindow(ob_display, self->title, -theme_bwidth,
|
||||||
-theme_bwidth, self->size.width, self->title_h);
|
-theme_bwidth, self->size.width, self->title_h);
|
||||||
XMoveResizeWindow(ob_display, self->items, 0, self->title_h + theme_bwidth,
|
|
||||||
self->size.width, items_h);
|
XMoveResizeWindow(ob_display, self->items, 0,
|
||||||
|
self->title_h + theme_bwidth, self->size.width,
|
||||||
|
items_h);
|
||||||
|
|
||||||
if (self->label)
|
if (self->label)
|
||||||
paint(self->title, self->a_title);
|
paint(self->title, self->a_title);
|
||||||
|
|
Loading…
Reference in a new issue