[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: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Wed, 9 Dec 2009 23:09:36 +0000

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?

Simon

-- 
:       ___
:  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=2429049
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-12-10 00:09:43 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.