mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Fix for bug #3579138, minimized windows can't be captured via the context menu.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2205 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
5723f6fa5d
commit
4d41fc0a43
2 changed files with 44 additions and 10 deletions
|
@ -316,8 +316,6 @@ namespace Greenshot {
|
|||
public MainForm(CopyDataTransport dataTransport) {
|
||||
instance = this;
|
||||
|
||||
// Make sure we never capture the mainform
|
||||
WindowDetails.RegisterIgnoreHandle(this.Handle);
|
||||
//
|
||||
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||
//
|
||||
|
@ -369,6 +367,9 @@ namespace Greenshot {
|
|||
// Setting it to true this late prevents Problems with the context menu
|
||||
notifyIcon.Visible = !conf.HideTrayicon;
|
||||
|
||||
// Make sure we never capture the mainform
|
||||
WindowDetails.RegisterIgnoreHandle(this.Handle);
|
||||
|
||||
// Create a new instance of the class: copyData = new CopyData();
|
||||
copyData = new CopyData();
|
||||
|
||||
|
@ -799,8 +800,8 @@ namespace Greenshot {
|
|||
menuItem.DropDownItems.Clear();
|
||||
// check if thumbnailPreview is enabled and DWM is enabled
|
||||
bool thumbnailPreview = conf.ThumnailPreview && DWM.isDWMEnabled();
|
||||
|
||||
List<WindowDetails> windows = WindowDetails.GetVisibleWindows();
|
||||
|
||||
List<WindowDetails> windows = WindowDetails.GetTopLevelWindows();
|
||||
foreach(WindowDetails window in windows) {
|
||||
ToolStripMenuItem captureWindowItem = new ToolStripMenuItem(window.Text);
|
||||
captureWindowItem.Tag = window;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue