obsproject / obs-browser

CEF-based OBS Studio browser plugin
GNU General Public License v2.0
776 stars 220 forks source link

Set window title for web popups using X11 (on Linux) #311

Closed WizardCM closed 2 years ago

WizardCM commented 3 years ago

Description

This modifies the window title of a popup generated by a browser embed/panel based on the name of the webpage.

image

I'm PR'ing this to get a second opinion on the implementation because Linux is not my forte and I'd rather not break anything. If no complains come up, I'll merge this in time for 27.1.

Motivation and Context

Feature parity.

How Has This Been Tested?

  1. Connect a Twitch account and enable FFZ chat integration.
  2. In the Chat dock, select the gear, choose "Non-Mod Settings" and then select "FrankerFaceZ Control Center"
  3. Notice the new popup now correctly has the title "Twitch" rather than a blank name

Types of changes

Checklist:

derrod commented 2 years ago

Does this also work on Wayland?

WizardCM commented 2 years ago

I'm personally unsure and have no way to test. It's the primary reason I haven't merged this myself yet.

GeorgesStavracas commented 2 years ago

Does this also work on Wayland?

This is specific to browser docks, which are disabled on Wayland - so much so that there already is other X11-specific code in there.