Skip to content

Commit

Permalink
Fix panel build error on macOS
Browse files Browse the repository at this point in the history
The original goal was to simplify the init function
across all platforms, but to solve the build issue
for now, an extra check specific to macOS is added.

Also bumps version to 2.13.1.
  • Loading branch information
WizardCM committed Jan 26, 2021
1 parent 9354da8 commit 0a45737
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion browser-version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#define OBS_BROWSER_VERSION_MAJOR 2
#define OBS_BROWSER_VERSION_MINOR 13
#define OBS_BROWSER_VERSION_PATCH 0
#define OBS_BROWSER_VERSION_PATCH 1

#ifndef MAKE_SEMANTIC_VERSION
#define MAKE_SEMANTIC_VERSION(major, minor, patch) \
Expand Down
6 changes: 6 additions & 0 deletions panel/browser-panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,13 @@ void QCefWidgetInternal::Init()
#else
CefRect rc = {0, 0, size.width(), size.height()};
#endif

#ifdef __APPLE__
windowInfo.SetAsChild((CefWindowHandle)handle, 0, 0,
size.width(), size.height());
#elif
windowInfo.SetAsChild((CefWindowHandle)handle, rc);
#endif

CefRefPtr<QCefBrowserClient> browserClient =
new QCefBrowserClient(this, script, allowAllPopups_);
Expand Down

0 comments on commit 0a45737

Please sign in to comment.