Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wayland: fullscreen/maximized state broken under mutter #224

Closed
jeromegn opened this issue Jun 19, 2020 · 7 comments
Closed

wayland: fullscreen/maximized state broken under mutter #224

jeromegn opened this issue Jun 19, 2020 · 7 comments
Labels
bug Something isn't working Linux Issue applies to Linux Wayland

Comments

@jeromegn
Copy link

Describe the bug

When trying to toggle fullscreen on WezTerm (by dragging the window to the top of the screen, on Gnome), the window gets the right width and height, but it's not "clamped" like other fullscreen windows.

Environment (please complete the following information):

  • OS: Linux Wayland
  • Version: wezterm 20200608-110940-3fb3a61

To Reproduce

Drag window to top of the screen to toggle fullscreen

Configuration

(doubt this is relevant)

local wezterm = require 'wezterm';
return {
  font = wezterm.font("JetBrains Mono"),
  color_scheme = "Dracula",
  enable_wayland = true,
  default_cursor_style = "SteadyBar",
}

Expected behavior

It should use the whole screen and be clamped to all edges.

Screenshots

image

@jeromegn jeromegn added the bug Something isn't working label Jun 19, 2020
@wez
Copy link
Owner

wez commented Jun 19, 2020

We use https://github.com/smithay/client-toolkit for the wayland client window handling.
mutter (the wayland compositor used by gnome) and the client toolkit tickle
problems with each other's implementation; the last similar issue was actually
a bug in mutter exposed by the client toolkit Smithay/client-toolkit#92 https://gitlab.gnome.org/GNOME/mutter/issues/1024

You can work around this issue by setting enable_wayland = false in your config.

Next steps:

  • Someone should probably report this to both smithay-client and mutter
  • It's worth thinking about how much effort it would be to remove this dep in the hope that we don't see this class of issue again

@jeromegn
Copy link
Author

Interesting. That makes sense.

enable_wayland = false doesn't appear to help though.

@wez
Copy link
Owner

wez commented Jun 19, 2020

You need to restart wezterm for that particular config to take effect; the choice of window system is global and processed only at startup!

@wez wez changed the title Fullscreen doesn't clamp to all edges wayland: Fullscreen doesn't clamp to all edges Jun 19, 2020
@jeromegn
Copy link
Author

Even with a restart. This is odd. Any way to confirm the settings are applied?

@wez
Copy link
Owner

wez commented Jun 20, 2020

It should be fairly apparent if it has taken effect, as the title bar will render differently when falling back to X.

I'd suggest launching wezterm from a different terminal for debugging purposes;

RUST_LOG=trace wezterm 2>/tmp/verbose.txt

and attach /tmp/verbose.txt to this issue.

@jeromegn
Copy link
Author

My bad, I had 2x enable_wayland and they conflicted.

Fullscreen does work with X11.

@wez wez added Linux Issue applies to Linux Wayland labels Jul 14, 2020
wez added a commit that referenced this issue Aug 16, 2020
@wez wez changed the title wayland: Fullscreen doesn't clamp to all edges wayland: fullscreen/maximized state broken under mutter Oct 14, 2020
@wez wez closed this as completed in f697de8 Feb 13, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2023

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 github-actions bot locked as resolved and limited conversation to collaborators Feb 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Linux Issue applies to Linux Wayland
Projects
None yet
Development

No branches or pull requests

2 participants