Fixed that the debugger window really moves itself to the foreground.
commitfe04582b873b1aefce1e47d50424cdbf8dbff601
authorJohannes Sixt <johannes.sixt@telecom.at>
Thu, 20 Apr 2006 21:17:53 +0000 (20 23:17 +0200)
committerJohannes Sixt <johannes.sixt@telecom.at>
Thu, 20 Apr 2006 21:17:53 +0000 (20 23:17 +0200)
tree3ecb0a1de5c448284cad1769b8f908270ddadaae
parent5eb6aa3c8add2e7f9ed783c498bc108e778ee4ee
Fixed that the debugger window really moves itself to the foreground.

When the option "Pop into foreground when program stops" is turned on,
KDbg attempted to move itself into the foreground using XRaiseWindow().
This used to work with older windowmanagers, but it does no longer.
Quite some force is required to achieve the goal: KWin::raiseWindow() and
KWin::forceActiveWindow() are actually reserved for pager applications.
With some phantasy, the debugger event can be interpreted as "user interaction".

This fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=171845
ChangeLog
kdbg/dbgmainwnd.cpp