<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,6 +7,7 @@ local texture = [[Interface\AddOns\oUF_tek\textures\statusbar]]
 local smallheight, height, width = 31, 64, 170
 local UnitReactionColor = UnitReactionColor
 local gray = {r = .3, g = .3, b = .3}
+local focus_highlight = {r = 1, g = 0, b = 1}
 local oUF = tekoUFembed
 tekoUFembed = nil
 
@@ -22,9 +23,12 @@ local menu = function(self)
 end
 
 local PostUpdateHealth = function(self, event, unit, bar, min, max)
-	local color = not UnitIsDeadOrGhost(unit) and (not UnitIsTapped(unit) or UnitIsTappedByPlayer(unit)) and UnitReactionColor[UnitReaction(unit, 'player')] or gray
+	local color = self.istankframe and UnitExists(&quot;focus&quot;) and UnitIsUnit(unit, &quot;focus&quot;) and focus_highlight or
+		not UnitIsDeadOrGhost(unit) and (not UnitIsTapped(unit) or UnitIsTappedByPlayer(unit)) and UnitReactionColor[UnitReaction(unit, 'player')]
+		or gray
 	self:SetBackdropBorderColor(color.r, color.g, color.b)
 end
+local function Update_Focus_Highlight(self, event, ...) PostUpdateHealth(self, event, self.unit) end
 
 local backdrop = {
 	bgFile = &quot;Interface\\Tooltips\\UI-Tooltip-Background&quot;, tile = true, tileSize = 16,
@@ -112,6 +116,12 @@ oUF.TagEvents[&quot;[tekpoison]&quot;]  = &quot;UNIT_AURA&quot;
 ------------------------------
 
 local func = function(settings, self, unit)
+	self.istankframe = self:GetParent():GetName() == &quot;oUF_Tanks&quot;
+	if self.istankframe then
+		self.PLAYER_FOCUS_CHANGED = Update_Focus_Highlight
+		self:RegisterEvent(&quot;PLAYER_FOCUS_CHANGED&quot;)
+	end
+
 	self.unit = unit
 	self.menu = menu
 </diff>
      <filename>layout.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9de1c8d6012975eecbd0af3e689fc7e3f0d6e44e</id>
    </parent>
  </parents>
  <author>
    <name>Tekkub</name>
    <email>tekkub@gmail.com</email>
  </author>
  <url>http://github.com/tekkub/ouf_tek/commit/fa35868458af0cb08078e916d39c7cd2179afbb7</url>
  <id>fa35868458af0cb08078e916d39c7cd2179afbb7</id>
  <committed-date>2009-06-12T23:46:46-07:00</committed-date>
  <authored-date>2009-06-12T23:46:46-07:00</authored-date>
  <message>Add focus highlight to tank frames</message>
  <tree>f82bd129b0d65f7efb0f7fd603bd884b5ac69654</tree>
  <committer>
    <name>Tekkub</name>
    <email>tekkub@gmail.com</email>
  </committer>
</commit>
