Windows 8: fix for capturing when a fullscreen app is visible, this didn't go away, when having multiple monitors.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2456 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-02-03 16:26:04 +00:00
parent 7ba6a57b4a
commit 141da5e724
2 changed files with 40 additions and 17 deletions

View file

@ -897,6 +897,13 @@ namespace Greenshot.Helpers {
#region capture with feedback
private void CaptureWithFeedback() {
using (CaptureForm captureForm = new CaptureForm(capture, windows)) {
// Added check for metro (Modern UI) apps, which might be maximized and cover the screen.
// as they don't want to
foreach(WindowDetails app in WindowDetails.GetMetroApps()) {
if (app.Maximised) {
app.HideApp();
}
}
DialogResult result = captureForm.ShowDialog();
if (result == DialogResult.OK) {
selectedCaptureWindow = captureForm.SelectedCaptureWindow;