chuntaro / emacs-keypression

Keystroke visualizer for GUI version Emacs.
122 stars 4 forks source link

Unexpected position for the first key typing #4

Open takaxp opened 4 years ago

takaxp commented 4 years ago

When providing keycaster-x-offset to (+ 576 10) which means actually (+ (frame-pixel-width) 10) for my env, the first key type is shown at the unexpected position. I'm using macOS (NS 27.0.60, EMP 26.3), is it same for Windows?

(when t
  (load "~/.emacs.d/27.0.60/el-get/emacs-keycaster/keycaster.el")
  ;; (custom-set-variables
  ;;  '(keycaster-x-offset (+ (frame-pixel-width) 10)))
  (custom-set-variables
   '(keycaster-x-offset (+ 576 10))) ;; NG
  ;; (custom-set-variables
  ;;  '(keycaster-x-offset (+ 476 10))) ;; OK
  (keycaster-mode))

a

chuntaro commented 4 years ago

It did not happen on Windows… Is the wrong display just the first keystroke?

takaxp commented 4 years ago

Yes. The first keystroke only. Maybe it happens only for me, so I'll investigate this further.