emilk / emilk/egui

Window decorations still rendered when fullscreen set to true

Open
#5,155 1 comment 0 reactions 0 assignees View on GitHub
bug dependencies eframe native-linux
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

**Describe the bug**
`eframe` renders window decorations when in `fullscreen` is `true`.

Workaround: set `decorations = !fullscreen`.

**To Reproduce**
Steps to reproduce the behavior:
1. Install eframe_template
2. Implement F11 to set `fullscreen` to `true` (see code below)
3. Run app
4. Press F11
5. Observe window decorations rendered where the normal-sized window used to be.

**Expected behavior**
Window decorations do not render.

**Screenshots**

![image](https://github.com/user-attachments/assets/13016d61-2bef-4960-abe0-e8d999c6fa9e)

**Desktop (please complete the following information):**
- OS: WSL2 in Windows 11
- Browser: N/A
- Version: N/A

**Smartphone (please complete the following information):**
- Device: N/A
- OS: N/A
- Browser: N/A
- Version: N/A

**Additional context**

Fullscreen implementation:

```
if let Some(new_fullscreen) = ctx.input(|i| {
if i.key_pressed(Key::F11) { Some(!i.viewport().fullscreen.unwrap_or(false)) }
else { None }
}) {
ctx.send_viewport_cmd(egui::ViewportCommand::Fullscreen( new_fullscreen));
}
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in eframe_template with the provided F11 handler and Cargo.toml setup, focusing on the ViewportCommand::Fullscreen transition. Compare the fullscreen and normal-sized states on WSL2 in Windows 11; done means fullscreen no longer renders the previous window decorations.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.