conf: Fix default wmfs keybinds.

This commit is contained in:
Martin Duquesnoy
2009-02-21 22:44:56 +01:00
parent 8b021f008e
commit 56a2c10bbe
9 changed files with 83 additions and 44 deletions

View File

@@ -240,6 +240,7 @@ client_get_name(Client *c)
int rf;
ulong ir, il;
/* This one instead XFetchName for utf8 name support */
if(XGetWindowProperty(dpy, c->win, net_atom[net_wm_name], 0, 4096,
False, net_atom[utf8_string], &rt, &rf, &ir, &il, (uchar**)&c->title) != Success)
XGetWindowProperty(dpy, c->win, ATOM("WM_NAME"), 0, 4096,

View File

@@ -39,7 +39,7 @@ void
buttonpress(XButtonEvent *ev)
{
Client *c;
int i;
int i, x, y;
screen_get_sel();
@@ -86,8 +86,8 @@ buttonpress(XButtonEvent *ev)
{
if(conf.layout_system && (ev->button == Button1 || ev->button == Button3)) /* True -> menu */
{
int y = infobar[selscreen].layout_button->geo.y + INFOBARH;
int x = infobar[selscreen].layout_button->geo.x + (sgeo[selscreen].x - BORDH);
y = infobar[selscreen].layout_button->geo.y + INFOBARH;
x = infobar[selscreen].layout_button->geo.x + (sgeo[selscreen].x - BORDH);
if(infobar[selscreen].geo.y != sgeo[selscreen].y - (INFOBARH + TBARH))
y = infobar[selscreen].geo.y - (INFOBARH * menulayout.nitem) - SHADH;

View File

@@ -191,11 +191,11 @@ frame_update(Client *c)
XClearWindow(dpy, c->bottom);
if(TBARH && (TBARH + BORDH + 1) > font->height)
{
barwin_draw_text(c->titlebar, (c->frame_geo.width / 2) - (textw(c->title) / 2),
barwin_draw_text(c->titlebar,
(c->frame_geo.width / 2) - (textw(c->title) / 2),
(font->height - (font->descent)) + (((TBARH + BORDH) - font->height) / 2),
c->title);
}
return;
}

View File

@@ -78,6 +78,7 @@ launcher_execute(Launcher launcher)
++pos;
break;
}
barwin_refresh_color(infobar[selscreen].bar);
barwin_draw_text(infobar[selscreen].bar, x, font->height, launcher.prompt);
barwin_draw_text(infobar[selscreen].bar, x + textw(launcher.prompt) + textw(" "), font->height, buf);

View File

@@ -86,7 +86,6 @@
#define LEN(x) (sizeof(x) / sizeof((x)[0]))
#define deb(p) fprintf(stderr, "debug: %d\n", (p))
#define PAD (14)
#define LPROMPT "Exec: "
/* barwin.c */
BarWindow *barwin_create(Window parent,