void OnRawInputEvent(object sender, RawInputEventArgs e) { switch (e.Action) { case RawInputAction.MouseMove: if (!IsFullScreenAppOpen && OverScreenEdge()) { ShowWindow(); } break; } }