Skip to content

Commit

Permalink
Refactor of context menu, working full screen projector
Browse files Browse the repository at this point in the history
  • Loading branch information
FiniteSingularity committed Aug 20, 2024
1 parent 500e1cb commit 62ee6fc
Show file tree
Hide file tree
Showing 4 changed files with 205 additions and 118 deletions.
11 changes: 11 additions & 0 deletions src/quick-access-source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,17 @@ void QuickAccessSource::openWindowedProjector() const
obs_source_release(source);
}

void QuickAccessSource::openFullScreenProjector(int id) const
{
obs_source_t *source = obs_weak_source_get_source(_source);
std::string projectorType =
_sourceClass == SourceClass::Source ? "Source" : "Scene";
std::string name = obs_source_get_name(source);
obs_frontend_open_projector(projectorType.c_str(), id, "",
name.c_str());
obs_source_release(source);
}

void QuickAccessSource::activateScene() const
{
obs_source_t *source = obs_weak_source_get_source(_source);
Expand Down
1 change: 1 addition & 0 deletions src/quick-access-source.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class QuickAccessSource {
void openFilters() const;
void openInteract() const;
void openWindowedProjector() const;
void openFullScreenProjector(int id) const;
void refreshBrowser() const;
void toggleActivation() const;
void activateScene() const;
Expand Down
Loading

0 comments on commit 62ee6fc

Please sign in to comment.