mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Some fixed for not getting windows to focus/to front which were inspired by FEATURE-992. [skip ci]
This commit is contained in:
parent
b92d79ed39
commit
5a1a4737ec
8 changed files with 51 additions and 9 deletions
|
@ -152,7 +152,8 @@ namespace GreenshotPlugin.Core {
|
|||
var menu = new ContextMenuStrip
|
||||
{
|
||||
ImageScalingSize = CoreConfig.IconSize,
|
||||
Tag = null
|
||||
Tag = null,
|
||||
TopLevel = true
|
||||
};
|
||||
|
||||
menu.Closing += delegate(object source, ToolStripDropDownClosingEventArgs eventArgs) {
|
||||
|
|
|
@ -1256,7 +1256,6 @@ namespace GreenshotPlugin.Core {
|
|||
/// </summary>
|
||||
public static void ToForeground(IntPtr handle)
|
||||
{
|
||||
|
||||
// Do nothing if the window is already in the foreground
|
||||
if (User32.GetForegroundWindow() == handle)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue