Implemented some TODO's, fixed freezing the wrong processes, fixed retrieval of window icon for some windows and cleaned some code.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1831 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-05-04 09:58:18 +00:00
commit 6905a353c1
9 changed files with 136 additions and 40 deletions

View file

@ -107,7 +107,10 @@ namespace Greenshot.Forms {
// Make sure we never capture the captureform
WindowDetails.RegisterIgnoreHandle(this.Handle);
// TODO: Need to call unregister at close
// Unregister at close
this.FormClosing += delegate {
WindowDetails.UnregisterIgnoreHandle(this.Handle);
};
// set cursor location
cursorPos = WindowCapture.GetCursorLocation();