wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Sometime init windows size wrong

Open Kurt-Shiwz opened this issue 1 year ago • 3 comments

What Operating System(s) are you seeing this problem on?

macOS

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20230712-072601-f4abf8fd

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

First, the focus of my mouse is on the internal screen of my Mac. Sometimes when I open wezterm, the window opens on the Dell monitor but the size of the window is incorrect. When I exit the wezterm. app and reopen it, it opens normally on the internal screen.

To Reproduce

No response

Configuration

confing:

    initial_rows = 40,
    initial_cols = 120,

Expected Behavior

No response

Logs

No response

Anything else?

No response

Kurt-Shiwz avatar Sep 13 '23 10:09 Kurt-Shiwz

Likely a duplicate of:

  • https://github.com/wez/wezterm/issues/1983
  • https://github.com/wez/wezterm/issues/3396
  • https://github.com/wez/wezterm/issues/3575

wez avatar Sep 13 '23 16:09 wez

I've done a simple workaround of this issue by adding the code below into the conifg:

wezterm.on('gui-startup', function()
    local tab, pane, window = wezterm.mux.spawn_window(cmd or {})
    window:gui_window():maximize()
end)

Unfortunately that does not solve the window size after unlocking the screen or moving the terminal window between the screens (Mac Retina and Acer, which is bigger but with smaller resolution).

snobb avatar Oct 17 '23 20:10 snobb

Please try the latest nightly build and let me know if this is still an issue!

wez avatar Feb 08 '24 12:02 wez

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] avatar Feb 22 '24 13:02 github-actions[bot]

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar Mar 24 '24 03:03 github-actions[bot]