Fix window size calculations

* When sending the synthetic ConfigureNotify event, make sure we are dealing
  with the correct Emacs window
* When managing a floating window, ensure it can be easily pick up by the user
This commit is contained in:
Chris Feng 2015-08-27 11:03:27 +08:00
parent bb4ebde55b
commit 5f9f673791
2 changed files with 6 additions and 5 deletions

View file

@ -289,7 +289,7 @@ corresponding buffer.")
(frame-pixel-height exwm-workspace--current))
(or exwm--floating-edges
(window-inside-absolute-pixel-edges
(get-buffer-window)))))
(get-buffer-window buffer t)))))
(exwm--log "Reply with ConfigureNotify (edges): %s" edges)
(xcb:+request exwm--connection
(make-instance 'xcb:SendEvent