aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/Desktop/WindowManager.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-05 11:24:37 -0400
committerMichael <[email protected]>2017-07-05 11:24:37 -0400
commite7b288968b8923eb5a7b9c358de75e521f1d8bde (patch)
tree36bc169f1f191e378dda91118375d476cd907b64 /ShiftOS.Frontend/Desktop/WindowManager.cs
parent181f94e70106dce186623d0d35d2646f2cc9dab3 (diff)
downloadshiftos_thereturn-e7b288968b8923eb5a7b9c358de75e521f1d8bde.tar.gz
shiftos_thereturn-e7b288968b8923eb5a7b9c358de75e521f1d8bde.tar.bz2
shiftos_thereturn-e7b288968b8923eb5a7b9c358de75e521f1d8bde.zip
panel buttons refresh when windows are closed
Diffstat (limited to 'ShiftOS.Frontend/Desktop/WindowManager.cs')
-rw-r--r--ShiftOS.Frontend/Desktop/WindowManager.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/ShiftOS.Frontend/Desktop/WindowManager.cs b/ShiftOS.Frontend/Desktop/WindowManager.cs
index a43d3bc..e48ac7c 100644
--- a/ShiftOS.Frontend/Desktop/WindowManager.cs
+++ b/ShiftOS.Frontend/Desktop/WindowManager.cs
@@ -21,6 +21,13 @@ namespace ShiftOS.Frontend.Desktop
if (brdr != null)
{
brdr.Close();
+ RunningBorders.Remove(brdr);
+ if (AppearanceManager.OpenForms.Contains(brdr))
+ {
+ AppearanceManager.OpenForms.Remove(brdr);
+ TileWindows();
+ Engine.Desktop.ResetPanelButtons();
+ }
win = null;
}
}
@@ -324,7 +331,7 @@ namespace ShiftOS.Frontend.Desktop
gfx.DrawRectangle(titlebarleft, 0, titlebarwidth, titleheight, UIManager.SkinTextures["titlebar"]);
}
//Now we draw the title text.
- var textMeasure = gfx.MeasureString(_text, titlefont);
+ var textMeasure = gfx.MeasureString(Text, titlefont);
PointF textloc;
if (titletextcentered)
textloc = new PointF((titlebarwidth - textMeasure.X) / 2,
@@ -332,7 +339,7 @@ namespace ShiftOS.Frontend.Desktop
else
textloc = new PointF(titlebarleft + titletextleft.X, titletextleft.Y);
- gfx.DrawString(_text, (int)textloc.X, (int)textloc.Y, titletextcolor.ToMonoColor(), titlefont);
+ gfx.DrawString(Text, (int)textloc.X, (int)textloc.Y, titletextcolor.ToMonoColor(), titlefont);
var tbuttonpos = LoadedSkin.TitleButtonPosition;