Re: [vim/vim] GTK4: 'lines' and 'columns' are not limited to the screen size (Issue #21041)

h_east (Vim Github Repository) <[email protected]>
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/issues/21041/[email protected]>
h-east left a comment (vim/vim#21041)

@64-bitman 
Not compositor dependent, the numbers come from Vim.

Measured here, with the monitor reported as 1536x787:

    gui_set_shellsize(): screen=1536x787 base=14x0 char=8x20 -> want=1470x780
    the window then became 1470x882

gui_get_base_height() returns 0, so the menubar and toolbar (65px) and the
window decorations (37px) are not part of the height Vim computes. The GTK3
code takes them off the screen height instead, with 'guiheadroom' and
get_menu_tool_height(). gui_mch_get_screen_dimensions() for GTK4 does neither.

One thing I cannot explain yet: ":set lines=1111" alone ends up fitting, while
":set columns=1111" followed by ":set lines=1111" does not, even though both
end with 32 lines and the same window height.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/issues/21041#issuecomment-5308759787
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/issues/21041/[email protected]>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/21041/5308759787%40github.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.