summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra/libpanel/event.c
diff options
context:
space:
mode:
authorqwx <devnull@localhost>2020-04-26 19:43:10 +0200
committerqwx <devnull@localhost>2020-04-26 19:43:10 +0200
commit0fc1abc73d813280fbd8e7119391a8c5c3d36b7c (patch)
tree8dcad5544e2c3289a0a57613ead4df9a8dda38e2 /sys/src/cmd/mothra/libpanel/event.c
parentc6f7989176b9da3b977f397ac4f20bc2f86dec1b (diff)
mothra: fix a few errors in previous patch
- nil check pl_blue allocation, and don't do it every time pl_rtdraw is called - fix re-adding previously removed flushimage calls - correct format for pointer - sysfatal in pl_drawinit on error
Diffstat (limited to 'sys/src/cmd/mothra/libpanel/event.c')
-rw-r--r--sys/src/cmd/mothra/libpanel/event.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/src/cmd/mothra/libpanel/event.c b/sys/src/cmd/mothra/libpanel/event.c
index 08dbf6bd1..4a9355d58 100644
--- a/sys/src/cmd/mothra/libpanel/event.c
+++ b/sys/src/cmd/mothra/libpanel/event.c
@@ -9,10 +9,8 @@ void plgrabkb(Panel *g){
plkbfocus=g;
}
void plkeyboard(Rune c){
- if(plkbfocus){
+ if(plkbfocus)
plkbfocus->type(plkbfocus, c);
- flushimage(display, 1);
- }
}
/*
@@ -47,5 +45,4 @@ void plmouse(Panel *g, Mouse *m){
g->flags&=~REMOUSE;
g->lastmouse=hit;
}
- flushimage(display, 1);
}