From 17309fd73b93d62c2e7f1d896ec5e0af5cf68c46 Mon Sep 17 00:00:00 2001 From: SIX10 Date: Fri, 5 Nov 2021 01:10:07 -0600 Subject: [PATCH] Multiple Monitor Support Adds support for multiple monitors --- RetroBar/App.xaml.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/RetroBar/App.xaml.cs b/RetroBar/App.xaml.cs index e44b5046..69e32723 100644 --- a/RetroBar/App.xaml.cs +++ b/RetroBar/App.xaml.cs @@ -6,6 +6,7 @@ using ManagedShell.Common.Helpers; using ManagedShell.Interop; using Application = System.Windows.Application; +using System.Collections.Generic; namespace RetroBar { @@ -46,8 +47,13 @@ public void ReopenTaskbar() private void openTaskbar() { - _taskbar = new Taskbar(_shellManager, _startMenuMonitor, _updater, AppBarScreen.FromPrimaryScreen(), (AppBarEdge)Settings.Instance.Edge); - _taskbar.Show(); + foreach (var screen in AppBarScreen.FromAllScreens()) + { + _taskbar = new Taskbar(_shellManager, _startMenuMonitor, _updater, screen, (AppBarEdge)Settings.Instance.Edge); + _taskbar.Show(); + } + + } private void App_OnStartup(object sender, StartupEventArgs e)