mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
26 lines
722 B
Go
26 lines
722 B
Go
package desktop
|
|
|
|
import (
|
|
"demodesk/neko/internal/desktop/xevent"
|
|
)
|
|
|
|
func (manager *DesktopManagerCtx) OnCursorChanged(listener func(serial uint64)) {
|
|
xevent.OnCursorChanged(listener)
|
|
}
|
|
|
|
func (manager *DesktopManagerCtx) OnClipboardUpdated(listener func()) {
|
|
xevent.OnClipboardUpdated(listener)
|
|
}
|
|
|
|
func (manager *DesktopManagerCtx) OnFileChooserDialogOpened(listener func()) {
|
|
xevent.OnFileChooserDialogOpened(listener)
|
|
}
|
|
|
|
func (manager *DesktopManagerCtx) OnFileChooserDialogClosed(listener func()) {
|
|
xevent.OnFileChooserDialogClosed(listener)
|
|
}
|
|
|
|
func (manager *DesktopManagerCtx) OnEventError(listener func(error_code uint8, message string, request_code uint8, minor_code uint8)) {
|
|
xevent.OnEventError(listener)
|
|
}
|