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

Borderless Window option -b Does Not Work WIth Wayland Backend #1505

Open
sonic2kk opened this issue Sep 3, 2024 · 3 comments
Open

Borderless Window option -b Does Not Work WIth Wayland Backend #1505

sonic2kk opened this issue Sep 3, 2024 · 3 comments

Comments

@sonic2kk
Copy link

sonic2kk commented Sep 3, 2024

Tested individual commits f554d88 and d4ca0b9, but did not bisect. Unsure if this is a regression or not. Tested on KDE Plasma Wayland 6.1.4.

The borderless window option -b does not work with the Wayland backend, which is selected by default on (compatible?) Wayland compositors. Forcing the backend to SDL with --backend=sdl displays a borderless window as expected.

Window decorations can be hid on KWin Wayland, so I don't think this is a Wayland limitation.

Example commands:

  • -b --backend=wayland -- glxgears will display window decorations when it should not.
  • -b --backend=sdl -- glxgears will hide window decorations as expected.
@sonic2kk
Copy link
Author

sonic2kk commented Sep 3, 2024

Seems that libdecor_frame_set_visibility is not working as expected in WaylandBackend:

libdecor_frame_set_visibility( m_pFrame, !g_bBorderlessOutputWindow );

Not sure why. All this is entirely out of my depth, just tested locally with some debug prints to make sure this was actually being called, and it is. When hardcoded to false the decorations still show.

@sonic2kk
Copy link
Author

sonic2kk commented Sep 3, 2024

@pkillboredom
Copy link

Also experiencing this problem. For now I am working around it with KWin Scripts. @misyltoad It would be swell if the above linked issue could be revisited when time permits 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants