-Fixed a stupid bug where blizzard has now prevented ChatFrame1 from moving independently. They must have added this in a hotfix.
Xruptor [11-22-12 - 13:11]
-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.
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