All: Fix some things in the default configuration file and frame.c

This commit is contained in:
Martin Duquesnoy
2009-02-22 15:28:34 +01:00
parent 1d83f14c3f
commit de5a6812db
5 changed files with 30 additions and 27 deletions

View File

@@ -266,7 +266,7 @@ barwin_refresh_color(BarWindow *bw)
if(bw->stipple)
{
XSetForeground(dpy, gc_stipple, getcolor(bw->fg));
XFillRectangle(dpy, bw->dr, gc_stipple, 3, 2, bw->geo.width - 6, bw->geo.height - 4);
XFillRectangle(dpy, bw->dr, gc_stipple, 3, 2, bw->geo.width - 6, bw->geo.height - 6);
}
if(bw->bord)

View File

@@ -72,7 +72,7 @@ frame_create(Client *c)
if(TBARH)
c->titlebar = barwin_create(c->frame, 0, 0,
c->frame_geo.width ,
TBARH + (c->geo.x - c->frame_geo.x),
TBARH + BORDH * 2,
c->colors.frame,
c->colors.fg,
True, conf.titlebar.stipple, False);
@@ -144,7 +144,7 @@ frame_moveresize(Client *c, XRectangle geo)
/* Titlebar */
if(TBARH)
barwin_resize(c->titlebar, c->frame_geo.width, TBARH + BORDH);
barwin_resize(c->titlebar, c->frame_geo.width, TBARH + BORDH * 2);
/* Resize area */
XMoveWindow(dpy, c->resize, c->frame_geo.width - RESHW, c->frame_geo.height - RESHW);

View File

@@ -101,7 +101,7 @@ init_cursor(void)
{
cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr);
cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);
cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur);
cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur);
return;
}

View File

@@ -120,7 +120,7 @@ menu_manage_event(XEvent *ev, Menu *menu, BarWindow *winitem[])
switch(ev->type)
{
/* Mouse Buttons */
/* Mouse Buttons */
case ButtonPress:
/* Execute the function linked with the item */
for(i = 0; i < menu->nitem; ++i)
@@ -128,10 +128,10 @@ menu_manage_event(XEvent *ev, Menu *menu, BarWindow *winitem[])
&& (ev->xbutton.button == Button1 || ev->xbutton.button == Button2))
if(menu->item[i].func)
menu->item[i].func(menu->item[i].cmd);
quit = True;
quit = True;
break;
/* Keys */
/* Keys */
case KeyPress:
XLookupString(&ev->xkey, NULL, 0, &ks, 0);
switch(ks)
@@ -153,7 +153,7 @@ menu_manage_event(XEvent *ev, Menu *menu, BarWindow *winitem[])
}
break;
/* Focus (with mouse) management */
/* Focus (with mouse) management */
case EnterNotify:
/* For focus an item with the mouse */
for(i = 0; i < menu->nitem; ++i)