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

On Linux, the window doesn't close unless it's unminimized #4772

Closed
valadaptive opened this issue Jul 3, 2024 · 0 comments · Fixed by #5042
Closed

On Linux, the window doesn't close unless it's unminimized #4772

valadaptive opened this issue Jul 3, 2024 · 0 comments · Fixed by #5042
Labels
bug Something is broken eframe Relates to epi and eframe native-linux Problem specific to Linux

Comments

@valadaptive
Copy link
Contributor

Describe the bug

On Linux, if you close an eframe window when it's minimized, nothing will happen until the window is un-minimized, at which point the window will close:

Peek.2024-07-03.11-15.mp4

This appears to happen on both the glow and wgpu backends.

To Reproduce
Steps to reproduce the behavior:

  1. Run any eframe demo app on Linux
  2. Try to close the window while it's minimized, either using the "Close" option in the taskbar's context menu, or Ctrl+C
  3. Observe that the window is not closed
  4. Un-minimize the window
  5. Observe that it closes itself

Expected behavior

The window closes immediately when it's told to, instead of when it's visible

Desktop (please complete the following information):

  • OS: Fedora 40 (X11)
  • Version: v0.28.0
@valadaptive valadaptive added the bug Something is broken label Jul 3, 2024
@emilk emilk added eframe Relates to epi and eframe native-linux Problem specific to Linux labels Jul 4, 2024
@emilk emilk closed this as completed in 2a6a130 Sep 1, 2024
486c pushed a commit to 486c/egui that referenced this issue Oct 9, 2024
Fix: The viewport stops working when the program is minimized.   

Fix: Logically, the weird parts have been normalized.
                                                               
**Issue :**
The viewport stops working when the program is minimized.
                         
* Related emilk#3321
* Related emilk#3877
* Related emilk#3985
* Closes emilk#3972
* Closes emilk#4772
* Related emilk#4832 
* Closes emilk#4892
**Solution :**
When `request_redraw()` is performed in Minimized state, the occasional
screen tearing phenomenon has disappeared.
( Probably expected to be the effect of emilk#4814 )
To address the issue of the `Immediate Viewport` not updating in
Minimized state, we can call `request_redraw()`.
hacknus pushed a commit to hacknus/egui that referenced this issue Oct 30, 2024
Fix: The viewport stops working when the program is minimized.   

Fix: Logically, the weird parts have been normalized.
                                                               
**Issue :**
The viewport stops working when the program is minimized.
                         
* Related emilk#3321
* Related emilk#3877
* Related emilk#3985
* Closes emilk#3972
* Closes emilk#4772
* Related emilk#4832 
* Closes emilk#4892
**Solution :**
When `request_redraw()` is performed in Minimized state, the occasional
screen tearing phenomenon has disappeared.
( Probably expected to be the effect of emilk#4814 )
To address the issue of the `Immediate Viewport` not updating in
Minimized state, we can call `request_redraw()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken eframe Relates to epi and eframe native-linux Problem specific to Linux
Projects
None yet
2 participants