obsproject / obsproject/obs-studio

[Linux] When exiting the app, the dialog gets put behind the main window

Open
#13,003 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

issue/confirmed
Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Operating System Info

Other

Other OS

Fedora Linux 43 KDE

OBS Studio Version

Other

OBS Studio Version (Other)

32.0.4 from Fedora RPMs with a backport (https://github.com/obsproject/obs-studio/pull/12951)

OBS Studio Log URL

N/A

OBS Studio Crash Log URL

N/A

Expected Behavior

Dialog should be the focused window.

Current Behavior

When right-click -> Exit in the OBS system tray icon while recording, this dialog appears:

Image

However, it is put behind the main window, requiring to click the taskbar to see the other window of OBS (which is the dialog as presented in the screenshot).

It does not happen on Windows.

Steps to Reproduce

Explained above.

Anything else we should know?

I think this can be solved with a window hint/flag to make it stay on top (so it always gets the most attention and overrides any other apps' focus).

I found this, may be of help (penultimate option at the right-bottom):

Image

https://doc.qt.io/qt-6/qtwidgets-widgets-windowflags-example.html

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the system-tray right-click Exit path and the code that creates the exit dialog. Read the Qt window-flags example linked in the issue, then reproduce the behavior on Fedora KDE; done means the dialog is focused and visible above the main window when exiting while recording.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, fedora, linux
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.