xwayland: support sending clipboard change notification on focus (#9111)
This commit is contained in:
parent
2d82a92324
commit
9e8d9791c7
2 changed files with 15 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue