Skip to content

Commit 74a9c0d

Browse files
authored
Merge pull request #129 from cairoshell/remove-cairo-code
Remove Cairo-specific code
2 parents e4893b0 + ce43c64 commit 74a9c0d

5 files changed

Lines changed: 1 addition & 33 deletions

File tree

src/ManagedShell.AppBar/AppBarEventArgs.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/ManagedShell.AppBar/AppBarEventReason.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/ManagedShell.AppBar/AppBarManager.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public class AppBarManager : IDisposable
1919

2020
public List<AppBarWindow> AppBars { get; } = new List<AppBarWindow>();
2121
public List<AppBarWindow> AutoHideBars { get; } = new List<AppBarWindow>();
22-
public EventHandler<AppBarEventArgs> AppBarEvent;
2322

2423
public AppBarManager(ExplorerHelper explorerHelper)
2524
{
@@ -37,12 +36,6 @@ public void SignalGracefulShutdown()
3736
}
3837
}
3938

40-
public void NotifyAppBarEvent(AppBarWindow sender, AppBarEventReason reason)
41-
{
42-
AppBarEventArgs args = new AppBarEventArgs { Reason = reason };
43-
AppBarEvent?.Invoke(sender, args);
44-
}
45-
4639
private IntPtr appBarMessageDelegate(APPBARMSGDATAV3 amd, ref bool handled)
4740
{
4841
// only handle certain messages, send other AppBar messages to default handler

src/ManagedShell.AppBar/AppBarWindow.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -565,11 +565,6 @@ protected virtual IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lPa
565565
ProcessScreenChange(ScreenSetupReason.DeviceChange);
566566
handled = true;
567567
}
568-
else if (msg == (int)NativeMethods.WM.DWMCOMPOSITIONCHANGED)
569-
{
570-
ProcessScreenChange(ScreenSetupReason.DwmChange);
571-
handled = true;
572-
}
573568

574569
return IntPtr.Zero;
575570
}

src/ManagedShell.AppBar/ScreenSetupReason.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ public enum ScreenSetupReason
44
{
55
DeviceChange,
66
DisplayChange,
7-
DpiChange,
8-
DwmChange,
9-
FirstRun,
10-
Reconciliation
7+
DpiChange
118
}
129
}

0 commit comments

Comments
 (0)