You are not logged in.
When I ssh into Arch and run emacs, the window that appears has a very small height (5 lines including the minibuffer). The remote system is Windows running VcXsrv. No .emacs file (I run with -q) and the resource database is empty. Various permutations on setting the height with initial-frame-alist, default-frame-alist, and X resources can cause the initial frame to be right, but subsequently created frames (C-x 5 f, etc.) will either have the small height, or will be the correct height but with only a couple lines for the main buffer and the minibuffer taking up the rest of the height.
I run emacs remotely from other Linux OS's and it works fine. If I run emacs on the Arch system itself in a KDE desktop, everything is fine.
Does anyone know what is going on, have any workarounds, etc.? Thanks.
Offline
Different emacs versions?
My guess is that emacs tries to detect the output size, fails and picks a minimum size to be safe.
Can you "emacs -g 80x24"?
Offline
Same thing happens when specifying the geometry on the command line. The weird thing is that it is only the vertical, the horizontal is fine.
The problem appears to be related to the gtk3 toolkit and the VcXsrv X server. Building with the gtk2 toolkit eliminates the problem, and emacs works fine on a KDE desktop in Arch.
I'm not sure about older emacs versions, Arch is up to date with the latest release.
Offline
Can you "xrandr -q" on the VcXsrv server?
Offline
$ xrandr -q
Screen 0: minimum 0 x 0, current 3840 x 2160, maximum 32767 x 32767
default connected primary 3840x2160+0+0 508mm x 285mm
3840x2160 0.00*
Offline
While an emulation, there's an active output and it doesn't have a stupid geometry.
Can you at least resize the window?
https://bugzilla.redhat.com/show_bug.cgi?id=1313902
Offline
The windows resize, and behave normally. The only problem seems to be when a new frame is created (either at startup or opening a new frame with C-x 5 something).
Offline
Can you post the "xwininfo -all"/xprop outputs of the gtk2 and gtk3 windows?
(I wonder whether fails on the base increment value, which is typically not 1x1 for terminals and I believe emacs as well)
Offline
What follows is xwininfo followed by xprop, the first set for gtk3, the second set for gtk2. They appear to have the same size increment.
$ xwininfo
xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.
xwininfo: Window id: 0x48013f "emacs@LAD-158343"
Absolute upper-left X: 356
Absolute upper-left Y: 401
Relative upper-left X: 356
Relative upper-left Y: 401
Width: 1312
Height: 238
Depth: 24
Visual: 0x8d
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x48013e (not installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +356+401 -2172+401 -2172-1521 +356-1521
-geometry 79x4+356+401
$ xprop
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
_WINDOWSWM_NATIVE_HWND(INTEGER) = 1510342, 0
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x480154
bitmap id # of mask for icon: 0x48015a
window id # of group leader: 0x480001
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_GTK_THEME_VARIANT(UTF8_STRING) =
_NET_WM_ICON(CARDINAL) = Icon (48 x 48):
░░░▒▒░░░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒
░▒▒▒▒░░░░░░░░░▒▒▒▒▒░
░▒▒▒░░░░░░░░░░░░░░░▒▒▒▒░
▒▒▒░░░░░░░░░░░░░░░░░░░▒▒▒▒
░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒
░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒░
░▒▒░░░░░░░░░░░░░░░ ░▒▒▒▒▒▒▓
░▒▒░░░░░░░░░░░░░ ░▒▒▒▒▒▒▒
▒▒░░░░░░░░░░░░░░░░░░░░░ ░▒▒▒▒▒▒▒▒
▒▒░░░░░░░░░░░░░░░░░░░░░ ▒▒▒▒▒▒▒▒▒
░▒░░░░░░░░░░░░░░░ ░▒▒▒▒▒▒▒▒▓
▒▒░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒
░▒░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒▒▓
▒▒░░░░░░░░ ░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒░░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▒▒░░░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
▒▒░░░░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒░░░░░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▒░░░░░░░░░░░▒▒▒▒░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
░▒░░░░░░░░░░▒▒▒▒▒▒▒░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
░▒░░░░░░░░░▒▒▒▒▒▒▒░░░░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▒░░░░░░░▒▒▒▒▒░░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▒░░░░░░▒▒▒▒░ ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▒░░░░░▒▒▒░ ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▒░░░▒▒▒▒░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
░▒░░▒▒▒▒░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒░ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▒▒▒▒▒▒▒░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▒▒▒▒▒▒▒ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▒▒▒▒▒▒▒▒░ ░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
░▒▒▒▒▒▒▒▒░ ░░▒▒▒▒▒▒▒▓░
▒▒▒▒▒▒▒▒▒▒░░ ░▒▒▒▒▒▒▒
░▒▒▒▒▒▒▒▒▒▒▒▒▒░░ ▒▒▒▒▒▒▓░
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░ ░▒▒▒▒▒▒▓▒
▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░ ░░▒▒▒▒▒▒▒▒▓
░▓▒▒▒▒▒▒▒▒▒▒▒░░ ░░▒▒▒▒▒▒▒▒▒▒▒▓
░▓▒▒▒▒▒▒▒▒░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒
▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓░
▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒
░▒▓▓▒▒▒▒▒▒▒▓▓▓▒░
░░▒▒▒▒▒▒░░
XdndAware(ATOM) = BITMAP
_NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 1312, 238
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 4718913, 4718914
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x480140
WM_CLIENT_LEADER(WINDOW): window id # 0x480001
_NET_WM_PID(CARDINAL) = 13963
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLIENT_MACHINE(STRING) = "LAD-158343"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified minimum size: 48 by 102
program specified resize increment: 16 by 34
program specified base size: 48 by 102
window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "emacs", "Emacs"
WM_ICON_NAME(STRING) = "emacs@LAD-158343"
_NET_WM_ICON_NAME(UTF8_STRING) = "emacs@LAD-158343"
WM_NAME(STRING) = "emacs@LAD-158343"
_NET_WM_NAME(UTF8_STRING) = "emacs@LAD-158343"
$ xwininfo
xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.
xwininfo: Window id: 0x48013f "emacs@LAD-158343"
Absolute upper-left X: 405
Absolute upper-left Y: 450
Relative upper-left X: 405
Relative upper-left Y: 450
Width: 1312
Height: 1320
Depth: 24
Visual: 0x21
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +405+450 -2123+450 -2123-390 +405-390
-geometry 79x35+405+450
$ xprop
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
XdndAware(ATOM) = BITMAP
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_WINDOWSWM_NATIVE_HWND(INTEGER) = 6097344, 0
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x48016a
bitmap id # of mask for icon: 0x48016b
window id # of group leader: 0x480001
_NET_WM_ICON(CARDINAL) = Icon (48 x 48):
░░░▒▒░░░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒
░▒▒▒▒░░░░░░░░░▒▒▒▒▒░
░▒▒▒░░░░░░░░░░░░░░░▒▒▒▒░
▒▒▒░░░░░░░░░░░░░░░░░░░▒▒▒▒
░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒
░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒░
░▒▒░░░░░░░░░░░░░░░ ░▒▒▒▒▒▒▓
░▒▒░░░░░░░░░░░░░ ░▒▒▒▒▒▒▒
▒▒░░░░░░░░░░░░░░░░░░░░░ ░▒▒▒▒▒▒▒▒
▒▒░░░░░░░░░░░░░░░░░░░░░ ▒▒▒▒▒▒▒▒▒
░▒░░░░░░░░░░░░░░░ ░▒▒▒▒▒▒▒▒▓
▒▒░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒
░▒░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒▒▓
▒▒░░░░░░░░ ░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒░░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▒▒░░░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
▒▒░░░░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒░░░░░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▒░░░░░░░░░░░▒▒▒▒░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
░▒░░░░░░░░░░▒▒▒▒▒▒▒░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
░▒░░░░░░░░░▒▒▒▒▒▒▒░░░░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▒░░░░░░░▒▒▒▒▒░░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▒░░░░░░▒▒▒▒░ ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▒░░░░░▒▒▒░ ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▒░░░▒▒▒▒░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
░▒░░▒▒▒▒░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒░ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▒▒▒▒▒▒▒░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▒▒▒▒▒▒▒ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▒▒▒▒▒▒▒▒░ ░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
░▒▒▒▒▒▒▒▒░ ░░▒▒▒▒▒▒▒▓░
▒▒▒▒▒▒▒▒▒▒░░ ░▒▒▒▒▒▒▒
░▒▒▒▒▒▒▒▒▒▒▒▒▒░░ ▒▒▒▒▒▒▓░
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░ ░▒▒▒▒▒▒▓▒
▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░ ░░▒▒▒▒▒▒▒▒▓
░▓▒▒▒▒▒▒▒▒▒▒▒░░ ░░▒▒▒▒▒▒▒▒▒▒▒▓
░▓▒▒▒▒▒▒▒▒░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒
▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓░
▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒
░▒▓▓▒▒▒▒▒▒▒▓▓▓▒░
░░▒▒▒▒▒▒░░
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 4718913
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x480140
WM_CLIENT_LEADER(WINDOW): window id # 0x480001
_NET_WM_PID(CARDINAL) = 13973
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLIENT_MACHINE(STRING) = "LAD-158343"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified minimum size: 48 by 130
program specified resize increment: 16 by 34
program specified base size: 48 by 130
window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "emacs", "Emacs"
WM_ICON_NAME(STRING) = "emacs@LAD-158343"
_NET_WM_ICON_NAME(UTF8_STRING) = "emacs@LAD-158343"
WM_NAME(STRING) = "emacs@LAD-158343"
_NET_WM_NAME(UTF8_STRING) = "emacs@LAD-158343"
Offline
It appears to be an emacs bug, 44002 if anyone is interested.
Offline
Should be fixed in master.
Offline