File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -195,14 +195,6 @@ void SetProcessPriority(const char *priority)
195195 SetPriorityClass (GetCurrentProcess (), IDLE_PRIORITY_CLASS);
196196}
197197
198- void SetWin32DropStyle (QWidget *window)
199- {
200- HWND hwnd = (HWND)window->winId ();
201- LONG_PTR ex_style = GetWindowLongPtr (hwnd, GWL_EXSTYLE);
202- ex_style |= WS_EX_ACCEPTFILES;
203- SetWindowLongPtr (hwnd, GWL_EXSTYLE, ex_style);
204- }
205-
206198bool SetDisplayAffinitySupported (void )
207199{
208200 static bool checked = false ;
Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ CheckIfAlreadyRunning(bool &already_running);
5858uint32_t GetWindowsVersion ();
5959uint32_t GetWindowsBuild ();
6060void SetProcessPriority (const char *priority);
61- void SetWin32DropStyle (QWidget *window);
6261bool DisableAudioDucking (bool disable);
6362
6463struct RunOnceMutexData ;
Original file line number Diff line number Diff line change @@ -1144,7 +1144,9 @@ void OBSBasic::OBSInit()
11441144 (opt_minimize_tray || sysTrayWhenStarted);
11451145
11461146#ifdef _WIN32
1147- SetWin32DropStyle (this );
1147+ if (acceptDrops ()) {
1148+ setAcceptDrops (true );
1149+ }
11481150
11491151 if (!hideWindowOnStart)
11501152 show ();
You can’t perform that action at this time.
0 commit comments