From 1ff18bc413cd424eefe49e0c302449d74fe244c1 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Thu, 22 Nov 2012 08:11:46 -0500 Subject: [PATCH] -Fixed a stupid bug where blizzard has now prevented ChatFrame1 from moving independently. They must have added this in a hotfix. -Because of the above fix, the issue with the 'ChatFrame1' is not movable has been fixed. --- XanChat.lua | 8 ++++++-- XanChat.toc | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/XanChat.lua b/XanChat.lua index 8c32dac..9d0d205 100644 --- a/XanChat.lua +++ b/XanChat.lua @@ -288,9 +288,12 @@ local function RestoreLayout(chatFrame) chatFrame:SetSize(db.width, db.height) end + local sSwitch = false + --check to see if we can even move the frame if not chatFrame:IsMovable() then chatFrame:SetMovable(true) + sSwitch = true end if ( db.vertPoint and db.horizPoint and chatFrame:IsMovable() ) then @@ -301,8 +304,9 @@ local function RestoreLayout(chatFrame) chatFrame:SetUserPlaced(false) end - --don't let the frames get moved around after we set them. Unless the user unlocks it and moves it - chatFrame:SetMovable(false) + if sSwitch then + chatFrame:SetMovable(false) + end end --hook origFCF_SavePositionAndDimensions diff --git a/XanChat.toc b/XanChat.toc index 0eafc23..85ca459 100644 --- a/XanChat.toc +++ b/XanChat.toc @@ -2,7 +2,7 @@ ## Title: xanChat ## Notes: A very minimalistic chat modification addon. ## Author: Xruptor -## Version: 3.6 +## Version: 3.7 ## SavedVariables: XCHT_DB xanChat.lua -- 1.7.9.5