robust-parenting #12

Merged
sashakoshka merged 17 commits from robust-parenting into main 2023-03-15 22:34:08 -06:00
3 changed files with 62 additions and 68 deletions
Showing only changes of commit 14ad35d85c - Show all commits

View File

@ -14,7 +14,7 @@ type scrollSum struct {
const scrollDistance = 16 const scrollDistance = 16
func (sum *scrollSum) add (button xproto.Button, window *Window, state uint16) { func (sum *scrollSum) add (button xproto.Button, window *window, state uint16) {
shift := shift :=
(state & xproto.ModMaskShift) > 0 || (state & xproto.ModMaskShift) > 0 ||
(state & window.backend.modifierMasks.shiftLock) > 0 (state & window.backend.modifierMasks.shiftLock) > 0
@ -44,7 +44,7 @@ func (sum *scrollSum) add (button xproto.Button, window *Window, state uint16) {
} }
func (window *Window) handleExpose ( func (window *window) handleExpose (
connection *xgbutil.XUtil, connection *xgbutil.XUtil,
event xevent.ExposeEvent, event xevent.ExposeEvent,
) { ) {