Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions frontend/utility/platform-windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,6 @@ void SetProcessPriority(const char *priority)
SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
}

void SetWin32DropStyle(QWidget *window)
{
HWND hwnd = (HWND)window->winId();
LONG_PTR ex_style = GetWindowLongPtr(hwnd, GWL_EXSTYLE);
ex_style |= WS_EX_ACCEPTFILES;
SetWindowLongPtr(hwnd, GWL_EXSTYLE, ex_style);
}

bool SetDisplayAffinitySupported(void)
{
static bool checked = false;
Expand Down
1 change: 0 additions & 1 deletion frontend/utility/platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ CheckIfAlreadyRunning(bool &already_running);
uint32_t GetWindowsVersion();
uint32_t GetWindowsBuild();
void SetProcessPriority(const char *priority);
void SetWin32DropStyle(QWidget *window);
bool DisableAudioDucking(bool disable);

struct RunOnceMutexData;
Expand Down
2 changes: 1 addition & 1 deletion frontend/widgets/OBSBasic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ void OBSBasic::OBSInit()
(opt_minimize_tray || sysTrayWhenStarted);

#ifdef _WIN32
SetWin32DropStyle(this);
setAcceptDrops(true);

if (!hideWindowOnStart)
show();
Expand Down