Closed sarg closed 5 years ago
Did you mean the 8 pixel loss in width? From the output of xwininfo I can see nothing abnormal. In exwm-mode
margins, fringes and scroll bar are automatically disabled so perhaps there is something else left in the first workspace. Please check with M-: (window-inside-pixel-edges) RET
with the first workspace selected.
Yeah, 8 pixels.
Output for window-inside-pixel-edges
is (0 0 1592 852)
.
And here is right bottom corner of my screen. You can see, that system tray is located correctly and app window have 8 pixel gray area at its right side.
Can't reproduce the bug in clean emacs with latest exwm. Maybe the problem is caused by another package.
Removed this from early-init.el, provided by doom-emacs.
;; Prevent the glimpse of un-styled Emacs by setting these early.
(add-to-list 'default-frame-alist '(menu-bar-lines . 0))
After that the problem dissapeared. But the root cause isn't this line, because adding it to clean emacs doesn't lead to reproducing the bug.
It looks like the frame has a non-zero sized internal border. Please check with (frame-parameter nil 'border-width)
with the first workspace selected.
There are two diagrams in (info "(elisp)Window Sizes")
and (info "(elisp)Frame Layout")
illustrating various UI components of an Emacs window/frame. Basically fringes, margins and scroll bars (all are Emacs window components) are automatically removed by EXWM, while the rest are left to users and you may want to check them.
There is something suspicious in the frame parameters: the frame is positioned at (-1, -1). It should be (0, 0) normally. Is the result the same with a minimal configuration?
I have found that emacs --fullscreen
in my Xsession doesn't take full screen space even when exwm is disabled. I have removed that parameter and the problem is gone. I suppose it isn't exwm issue at all, feel free to close it because workaround exist.
You don't have to specify that option since EXWM will do that for you (and it does not rely on Emacs's builtin fullscreen support).
I'm also experiencing this after logging in and the first EXWM workspace is displayed.
When switching to workspace 1, and back to workspace 0, the issue disappears and the window is aligned to the screen dimensions.
It looks to me like it's caused by emacs being created in a systemd daemon. Once Xorg is started, an emacsclient connects to the daemon socket, the geometrics of the initial frame is a bit off.
My display resolution is 1600x900, but apps on workspace 0 are only 1592x882. Other workspaces aren't affected. I have tried to disable system tray but it didn't help.