Garrett,
Check the wlrow() and wlcol() first. If either one are negative, or greater than wrows() or wcols() then it's already docked.
>>Lisa Slater-Nichols posted this in the newsgroup a while back:
>>mouse dblclick at ;
>> wlrow("report controls")+1, ;
>> wlcol("report controls")+1 ;
>> window (_screen.name)
>
>I thought that was working really well for me, until I realized that that
toggles the docked status... unless it shouldn't, and I'm missing something....