Skip to content

Commit

Permalink
Got rid of FrigoForm.OwnerHandle.
Browse files Browse the repository at this point in the history
  • Loading branch information
FrigoCoder committed Jan 13, 2018
1 parent 5480a0d commit a9dced5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions FrigoTab/ApplicationWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public ApplicationWindow (FrigoForm owner, WindowHandle application, int index)
Application = application;
Selected.Changed += (x, y) => RenderOverlay();
this.index = index;
thumbnail = new Thumbnail(application, OwnerHandle);
thumbnail = new Thumbnail(application, owner.WindowHandle);
windowIcon = new WindowIcon(application);
windowIcon.Changed += RenderOverlay;
}
Expand All @@ -28,7 +28,7 @@ public ApplicationWindow (FrigoForm owner, WindowHandle application, int index)

protected override void OnSizeChanged (EventArgs e) {
base.OnSizeChanged(e);
thumbnail.SetDestinationRect(new Rect(Bounds).ScreenToClient(OwnerHandle));
thumbnail.SetDestinationRect(new Rect(Bounds).ScreenToClient(((FrigoForm) Owner).WindowHandle));
RenderOverlay();
}

Expand Down
1 change: 0 additions & 1 deletion FrigoTab/FrigoForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ namespace FrigoTab {

public class FrigoForm : Form {

public WindowHandle OwnerHandle => new WindowHandle(Owner.Handle);
public WindowHandle WindowHandle => new WindowHandle(Handle);
protected WindowExStyles ExStyle = WindowExStyles.ToolWindow;

Expand Down

0 comments on commit a9dced5

Please sign in to comment.