diff options
| author | 2025-01-17 12:12:01 -0500 | |
|---|---|---|
| committer | 2025-01-17 12:12:01 -0500 | |
| commit | 37684729283f62fd7f1e74bc2b318dc9ad2cb695 (patch) | |
| tree | 2f5be73bf64ac6573e35e8f499515659472a14c9 /src/sink | |
| parent | d1f1eb9b3713a450c0736caad17febae0721af4d (diff) | |
| download | camu-37684729283f62fd7f1e74bc2b318dc9ad2cb695.tar.gz camu-37684729283f62fd7f1e74bc2b318dc9ad2cb695.tar.bz2 camu-37684729283f62fd7f1e74bc2b318dc9ad2cb695.zip | |
Account for dependency changes, platform testing
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/sink')
| -rw-r--r-- | src/sink/desktop.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sink/desktop.c b/src/sink/desktop.c index cb5e7c6..6fe6001 100644 --- a/src/sink/desktop.c +++ b/src/sink/desktop.c @@ -17,12 +17,20 @@ static u8 sink_callback(void *userdata, u8 op, u8 type, void *opaque) { struct camu_desktop *c = (struct camu_desktop *)userdata; + + if (op == CAMU_SINK_MOCK_CLOSE) { + c->should_quit = 1; + camu_screen_wake(&c->scr); + return CAMU_SINK_OK; + } + if (!camu_default_sink_callback(&c->scr, &c->mixer, op, type, opaque)) { camu_sink_close(&c->sink); if (c->exit_callback) { c->exit_callback(c->userdata, c); } } + return CAMU_SINK_OK; } @@ -108,7 +116,7 @@ bool camu_desktop_connect(struct camu_desktop *c, u8 type, struct nn_event_loop al_str_from(&c->sink.default_list, "default"); c->sink.callback = sink_callback; c->sink.userdata = c; - return camu_sink_connect(&c->sink, type, addr, port, al_str_c("desktop")); + return camu_sink_connect(&c->sink, type, addr, port, &al_str_c("desktop")); } bool camu_desktop_tick(struct camu_desktop *c) |