|
|
|
@ -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,
|
|
|
|
) {
|
|
|
|
) {
|
|
|