xwayland: support sending clipboard change notification on focus (#9111)

This commit is contained in:
DDoSolitary 2025-01-21 01:53:29 +08:00 committed by GitHub
parent 2d82a92324
commit 9e8d9791c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View file

@ -44,13 +44,16 @@ struct SXSelection {
xcb_window_t owner = 0;
xcb_timestamp_t timestamp = 0;
SP<CXDataSource> dataSource;
bool notifyOnFocus = false;
void onSelection();
void onKeyboardFocus();
bool sendData(xcb_selection_request_event_t* e, std::string mime);
int onRead(int fd, uint32_t mask);
struct {
CHyprSignalListener setSelection;
CHyprSignalListener keyboardFocusChange;
} listeners;
std::unique_ptr<SXTransfer> transfer;