Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

refactor(bar): remove `App.xaml` and its associated class

Lars Bergere7811cae90be
diff --git a/GlazeWM.Bar/App.xaml b/GlazeWM.Bar/App.xaml
deleted file mode 100644
index d30d69bc..00000000
--- a/GlazeWM.Bar/App.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-<Application
- x:Class="GlazeWM.Bar.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:GlazeWM.Bar"
- StartupUri="MainWindow.xaml">
- <Application.Resources />
-</Application>
diff --git a/GlazeWM.Bar/App.xaml.cs b/GlazeWM.Bar/App.xaml.cs
deleted file mode 100644
index d753f877..00000000
--- a/GlazeWM.Bar/App.xaml.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Windows;
-
-namespace GlazeWM.Bar
-{
- /// <summary>
- /// Interaction logic for App.xaml
- /// </summary>
- public partial class App : Application
- {
- }
-}
diff --git a/GlazeWM.Bar/BarService.cs b/GlazeWM.Bar/BarService.cs
index 24d5acec..a348500d 100644
--- a/GlazeWM.Bar/BarService.cs
+++ b/GlazeWM.Bar/BarService.cs
@@ -5,13 +5,14 @@ using System;
using System.Threading;
using System.Linq;
using static GlazeWM.Infrastructure.WindowsApi.WindowsApiService;
+using System.Windows;
namespace GlazeWM.Bar
{
public class BarService
{
private Bus _bus;
- private App _application;
+ private Application _application;
public BarService(Bus bus)
{
@@ -22,7 +23,7 @@ namespace GlazeWM.Bar
{
var thread = new Thread(() =>
{
- _application = new App();
+ _application = new Application();
// Launch the bar window on the added monitor.
_bus.Events.Where(@event => @event is MonitorAddedEvent)