Fixed INCR

Oops!
This commit is contained in:
2023-03-29 23:24:42 -04:00
parent fc228a13d3
commit 8abc4defa7
4 changed files with 56 additions and 11 deletions

View File

@@ -34,6 +34,7 @@ type window struct {
config config.Config
selectionRequest *selectionRequest
selectionClaim *selectionClaim
metrics struct {
width int
@@ -69,6 +70,7 @@ func (backend *Backend) newWindow (
err = window.xWindow.Listen (
xproto.EventMaskExposure,
xproto.EventMaskStructureNotify,
xproto.EventMaskPropertyChange,
xproto.EventMaskPointerMotion,
xproto.EventMaskKeyPress,
xproto.EventMaskKeyRelease,
@@ -96,6 +98,10 @@ func (backend *Backend) newWindow (
Connect(backend.connection, window.xWindow.Id)
xevent.SelectionNotifyFun(window.handleSelectionNotify).
Connect(backend.connection, window.xWindow.Id)
xevent.PropertyNotifyFun(window.handlePropertyNotify).
Connect(backend.connection, window.xWindow.Id)
xevent.SelectionClearFun(window.handleSelectionClear).
Connect(backend.connection, window.xWindow.Id)
window.SetTheme(backend.theme)
window.SetConfig(backend.config)