diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-14 09:27:00 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-14 09:28:03 +0400 |
| commit | 2506d43bb9b78adbfa291604616363089b4dcc21 (patch) | |
| tree | 5f214bf675a44ec66f8f1acb5ac06e824dbfe72e | |
| parent | d899bc4712a0542435c950a0644aa42f0bb34557 (diff) | |
| download | niri-2506d43bb9b78adbfa291604616363089b4dcc21.tar.gz niri-2506d43bb9b78adbfa291604616363089b4dcc21.tar.bz2 niri-2506d43bb9b78adbfa291604616363089b4dcc21.zip | |
xdg-decoration: Document SDL2 bug
| -rw-r--r-- | src/handlers/xdg_shell.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs index cc3b7429..9df4274f 100644 --- a/src/handlers/xdg_shell.rs +++ b/src/handlers/xdg_shell.rs @@ -288,6 +288,14 @@ impl XdgDecorationHandler for State { } fn request_mode(&mut self, toplevel: ToplevelSurface, mode: zxdg_toplevel_decoration_v1::Mode) { + // Set whatever the client wants, rather than our preferred mode. This especially matters + // for SDL2 which has a bug where forcing a different (client-side) decoration mode during + // their window creation sequence would leave the window permanently hidden. + // + // https://github.com/libsdl-org/SDL/issues/8173 + // + // The bug has been fixed, but there's a ton of apps which will use the buggy version for a + // long while... toplevel.with_pending_state(|state| { state.decoration_mode = Some(mode); }); |
