mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Made zoom move to a different location if it goes outside the screen. Also changed the Metro-App visibility property, this might work (up to an acceptable level) but is untested.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2284 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
a075a81daf
commit
831a3b4d5b
4 changed files with 57 additions and 35 deletions
|
@ -133,14 +133,10 @@ namespace Greenshot.Forms {
|
|||
private void CreateZoom() {
|
||||
if (zoomForm == null) {
|
||||
zoomForm = new ZoomForm(capture);
|
||||
zoomForm.Show();
|
||||
WindowDetails.ToForeground(zoomForm.Handle);
|
||||
zoomForm.Show(this);
|
||||
|
||||
// Fix missing focus issue
|
||||
WindowDetails.ToForeground(this.Handle);
|
||||
this.TopMost = false;
|
||||
zoomForm.TopMost = true;
|
||||
Activate();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -149,7 +145,6 @@ namespace Greenshot.Forms {
|
|||
zoomForm.Close();
|
||||
// Fix missing focus issue
|
||||
WindowDetails.ToForeground(this.Handle);
|
||||
this.TopMost = true;
|
||||
zoomForm = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue