Skip to content

Commit

Permalink
Merge pull request #5 from UpG-Labs/fix-getmousefocus
Browse files Browse the repository at this point in the history
Fix GetMouseFocus and update for 1.15.4
  • Loading branch information
romracer authored Sep 27, 2024
2 parents 34b5299 + 44a4d88 commit d1c1305
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion ItemRack/ItemRack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1305,10 +1305,16 @@ function ItemRack.WriteMenuCooldowns()
end

function ItemRack.MenuMouseover()
local frame = GetMouseFocus()
local frame = nil
local frameName = nil
local frameVisible = nil
local IRmouseOverFrame = nil
if GetMouseFocus then
frame = GetMouseFocus()
elseif GetMouseFoci then
local mouseFoci = GetMouseFoci()
frame = mouseFoci[1] or nil
end
if frame then frameName = frame:GetName() end
if frame then frameVisible = frame:IsVisible() end
if frameName then IRmouseOverFrame = ItemRack.MenuMouseoverFrames[frameName] end
Expand Down
2 changes: 1 addition & 1 deletion ItemRack/ItemRack.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 11502, 40400
## Interface-Classic: 11502
## Interface-Classic: 11504
## Interface-TBC: 20504
## Interface-Wrath: 30403
## Interface-Cata: 40400
Expand Down
2 changes: 1 addition & 1 deletion ItemRackOptions/ItemRackOptions.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 11502, 40400
## Interface-Classic: 11502
## Interface-Classic: 11504
## Interface-TBC: 20504
## Interface-Wrath: 30403
## Interface-Cata: 40400
Expand Down

0 comments on commit d1c1305

Please sign in to comment.