8 void plgrabkb(Panel *g){
11 void plkeyboard(Rune c){
13 plkbfocus->type(plkbfocus, c);
14 flushimage(display, 1);
19 * Return the most leafward, highest priority panel containing p
21 Panel *pl_ptinpanel(Point p, Panel *g){
23 for(;g;g=g->next) if(ptinrect(p, g->r)){
24 v=pl_ptinpanel(p, g->child);
25 if(v && v->pri(v, p)>=g->pri(g, p)) return v;
30 void plmouse(Panel *g, Mouse *m){
35 hit=pl_ptinpanel(m->xy, g);
37 if(last && last!=hit){
50 flushimage(display, 1);