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

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

From: Nikolay Belyh <nbelyh_at_gmail.com>
Date: Wed, 9 Dec 2009 00:51:25 +0600

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.

Kind regards, Nikolay.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2428291

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2009-12-08 19:54:22 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.