all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* A focus problem when mouse curse moved on a child-frame in linux
@ 2018-01-12  1:40 tumashu
  2018-01-12  8:48 ` martin rudalics
  2018-01-12 19:12 ` A focus problem when mouse curse moved on a child-frame in GNU/Linux Richard Stallman
  0 siblings, 2 replies; 11+ messages in thread
From: tumashu @ 2018-01-12  1:40 UTC (permalink / raw)
  To: emacs-devel@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1664 bytes --]

-------------------------------------------------------
(let ((buffer (get-buffer-create "*test*"))
      (test (let ((after-make-frame-functions nil))
              (make-frame
               `((parent-frame . ,(window-frame))
                 (no-accept-focus . t)
                 (border-width . 0)
                 (internal-border-width . 0)
                 (vertical-scroll-bars . nil)
                 (horizontal-scroll-bars . nil)
                 (left-fringe . 0)
                 (right-fringe . 0)
                 (menu-bar-lines . 0)
                 (tool-bar-lines . 0)
                 (line-spacing . 0)
                 (unsplittable . t)
                 (no-other-frame . t)
                 (undecorated . t)
                 (cursor-type . nil)
                 (minibuffer . nil)
                 (no-special-glyphs . t)
                 (inhibit-double-buffering . t)
                 (width . 10)
                 (height . 10)))))
      (pos (posn-x-y (posn-at-point (point) (selected-window)))))
  (set-window-buffer (frame-root-window test) buffer)
  (set-frame-position test (car pos) (cdr pos))
  (with-current-buffer buffer
    (setq mode-line-format nil)
    (erase-buffer)
    (insert "
--------------------
--------------------
--------------------"))
  (fit-frame-to-buffer test))<I>

-----------------------------------------------------------

1. eval above code at <I> , a child-frame will be at <I>
2. move mouse curse on the top of this child-frame
3. type "a", the "a" should be inserted into the position <I>,
on Windows, it is, but on linux, the "a" is inserted into the
child-frame's buffer instead of position <I>


[-- Attachment #2: Type: text/html, Size: 3678 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-01-16  9:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-12  1:40 A focus problem when mouse curse moved on a child-frame in linux tumashu
2018-01-12  8:48 ` martin rudalics
2018-01-12 12:20   ` Feng Shu
2018-01-12 18:48     ` martin rudalics
2018-01-12 23:46       ` Feng Shu
2018-01-13  8:50         ` martin rudalics
2018-01-14 21:50           ` Feng Shu
2018-01-15  9:39             ` martin rudalics
2018-01-15 10:53               ` Yuri Khan
2018-01-16  9:08                 ` martin rudalics
2018-01-12 19:12 ` A focus problem when mouse curse moved on a child-frame in GNU/Linux Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.