core/data: Use pointer focus for DnD operations (#8707)

fixes #7737
This commit is contained in:
Vaxry
2024-12-14 16:19:56 +01:00
committed by GitHub
parent 3cba4ba44e
commit 9f7a96b997
5 changed files with 45 additions and 19 deletions

View File

@@ -155,6 +155,7 @@ class CWLDataDeviceProtocol : public IWaylandProtocol {
void sendSelectionToDevice(SP<CWLDataDeviceResource> dev, SP<IDataSource> sel);
void updateSelection();
void onKeyboardFocus();
void onDndPointerFocus();
struct {
WP<CWLDataDeviceResource> focusedDevice;
@@ -191,6 +192,7 @@ class CWLDataDeviceProtocol : public IWaylandProtocol {
struct {
CHyprSignalListener onKeyboardFocusChange;
CHyprSignalListener onDndPointerFocusChange;
} listeners;
};