[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Set foreground window to foreground when external tool used as a diff/merge

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 10 Dec 2009 19:12:50 +0100

On 10.12.2009 00:09, Simon Large wrote:
> 2009/12/9 Stefan Küng<tortoisesvn_at_gmail.com>:
>> On 08.12.2009 19:51, Nikolay Belyh wrote:
>>> Windows Vista/7 (with UAC on?) prevents windows from "popping up" more
>>> strictly than it was in XP
>>> SO, there here is a problem: when you try to see a difference from the
>>> previous version, the diff/merge tool's window is opened BEHIND the
>>> tortoise's window. This seem to be extremely inconvenient.
>>>
>>> To fix this, tortoise shall allow "child" diff/merge tool to set
>>> foreground window. There is a function that does exactly this thing -
>>> AllowSetForegroundWindow.
>>> I think it would be good enough to just call that function with child
>>> process id.
>>>
>>> Please see the patch attached (single line added - that call to
>>> AllowSetForegroundWindow).
>>> Works for me.
>>
>> Ups, completely missed your patch. But I've implemented the very same
>> thing in r17906 myself.
>
> Does this fix the problem with TMerge sometimes losing focus after 5
> seconds (on XP)? If so, can it be backported to 1.6.x?

I doubt that this would fix this. But you could try with a nightly build
and report back.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2429273
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-12-10 19:13:05 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.