core: support OSC 9 and OSC 777 for showing desktop notifications

This commit is contained in:
Gregory Anders
2023-11-12 09:39:03 -05:00
parent 1deafe34fb
commit 3f4ea2f763
8 changed files with 217 additions and 11 deletions

View File

@@ -45,6 +45,15 @@ pub const Message = union(enum) {
/// The child process running in the surface has exited. This may trigger
/// a surface close, it may not.
child_exited: void,
/// Show a desktop notification.
desktop_notification: struct {
/// Desktop notification title.
title: WriteReq,
/// Desktop notification body.
body: WriteReq,
},
};
/// A surface mailbox.