diff options
| author | Miguel <m.i@gmx.at> | 2018-10-09 16:21:32 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-10-09 16:21:32 +0200 |
| commit | 63e5017d9863d4ed215782e469e8ee2c6ff8473d (patch) | |
| tree | f12d149ffa34e6a39f4bce4fe9a001e4ca8c6027 /video/compositor.c | |
| parent | a6a11437a390fb7e95fe995214d82bf5dbfe1eaf (diff) | |
fix pipers
Diffstat (limited to 'video/compositor.c')
| -rw-r--r-- | video/compositor.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/video/compositor.c b/video/compositor.c index 5dca7bd..192feea 100644 --- a/video/compositor.c +++ b/video/compositor.c @@ -45,6 +45,7 @@ static uint16_t mouse_y=100; static uint16_t mouse_k; static bool skip_render; +static bool skip_render2; static void put_pixel(int x,int y, uint32_t color) { @@ -205,6 +206,7 @@ void compositor_add_window(uint32_t addr,uint32_t pid) windows[0].pid=pid; next_window++; + compositor_mouse_handle(200,200,0); } void compositor_init(uint16_t width, uint16_t height, uint16_t pitch) @@ -218,11 +220,16 @@ void compositor_wake() { skip_render=false; } +void compositor_wake2() +{ + skip_render2=false; +} void compositor_swap_buffers() { - if(skip_render)return; + if(skip_render||skip_render2)return; skip_render=true; + skip_render2=true; static bool first=true; // if(!first)return; @@ -247,7 +254,7 @@ void compositor_kb_handle(char c) if(w->active) { // klog("writing [%c] to window with pid [%d]",c,w->pid); - fd_write(get_fd(w->pid,1),c); + fd_write(get_fd(w->pid,0),c); } } } |
