aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Window.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-11-05 23:02:49 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-11-05 23:02:49 +0100
commit5185d70ddd14728576bafdfea267981baed88d84 (patch)
tree28ecf610198dc524f927f953a952cbc7f1717498 /src/GraphicObjects/Window.cs
parent8d59e42e78db11afaf9b2f6530403a12b1d1926c (diff)
parent28788991d650bc8ba29b9c2817dbb757129977e5 (diff)
merge
Diffstat (limited to 'src/GraphicObjects/Window.cs')
-rw-r--r--src/GraphicObjects/Window.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/GraphicObjects/Window.cs b/src/GraphicObjects/Window.cs
index 176e8d90..7ea4db75 100644
--- a/src/GraphicObjects/Window.cs
+++ b/src/GraphicObjects/Window.cs
@@ -152,7 +152,7 @@ namespace Crow
alwaysOnTop = value;
if (alwaysOnTop && Parent != null)
- currentInterface.PutOnTop (this);
+ CurrentInterface.PutOnTop (this);
NotifyValueChanged ("AlwaysOnTop", alwaysOnTop);
}
@@ -178,11 +178,11 @@ namespace Crow
{
base.onMouseMove (sender, e);
- Interface otkgw = currentInterface;
+ Interface otkgw = CurrentInterface;
if (!hoverBorder) {
currentDirection = Direction.None;
- currentInterface.MouseCursor = XCursor.Default;
+ CurrentInterface.MouseCursor = XCursor.Default;
return;
}
@@ -323,7 +323,7 @@ namespace Crow
#endregion
protected void onMaximized (object sender, EventArgs e){
- lock (currentInterface.LayoutMutex) {
+ lock (CurrentInterface.LayoutMutex) {
if (!IsMinimized)
savedBounds = this.LastPaintedSlot;
this.Left = this.Top = 0;
@@ -342,7 +342,7 @@ namespace Crow
}
protected void onUnmaximized (object sender, EventArgs e){
- lock (currentInterface.LayoutMutex) {
+ lock (CurrentInterface.LayoutMutex) {
this.Left = savedBounds.Left;
this.Top = savedBounds.Top;
this.Width = savedBounds.Width;
@@ -357,7 +357,7 @@ namespace Crow
Unmaximized.Raise (sender, e);
}
protected void onMinimized (object sender, EventArgs e){
- lock (currentInterface.LayoutMutex) {
+ lock (CurrentInterface.LayoutMutex) {
if (IsNormal)
savedBounds = this.LastPaintedSlot;
Width = 200;
@@ -375,7 +375,7 @@ namespace Crow
{
hoverBorder = false;
currentDirection = Direction.None;
- currentInterface.MouseCursor = XCursor.Default;
+ CurrentInterface.MouseCursor = XCursor.Default;
}
protected void onBorderMouseEnter (object sender, MouseMoveEventArgs e)
{
@@ -385,7 +385,7 @@ namespace Crow
protected void butQuitPress (object sender, MouseButtonEventArgs e)
{
- currentInterface.MouseCursor = XCursor.Default;
+ CurrentInterface.MouseCursor = XCursor.Default;
close ();
}