Jump to content

Toggling floating tool windows causes PDN to lose focus


Recommended Posts

Note: Having searched the forum, I found that this is identical to a bug reported by Shadow.NET, but in that post the bug was dismissed as non-existent and the thread is now too old to revive: http://paintdotnet.12.forumer.com/viewtopic.php?t=3470

Description: Toggling the floating tool windows using the keyboard when there are no documents open causes Paint.NET to lose focus. Focus is passed to the next open application in Windows. Furthermore, Paint.NET also disappears from the Alt+Tab Task Switcher and does not reappear until the Paint.NET window recovers focus.

Severity: Minor

Reproducible: Always

Steps to reproduce:

1. Open Paint.NET and have at least another one program running (suggest you have another two programs running, so that the task list is well populated).

2. Close all images so that Paint.NET has no open images.

3. Using the keyboard, toggle the floating tool windows in an order such that when two floating windows are closed, open the first one then second one and then close the second one.

For example, when the Layers and Colors windows are closed, press F7 to open the Layers window, then F8 to open the Colors window, then F8 again to close the Colors window. (ie, F7, F8, F8 ).

Expected behaviour: The floating tool window closes.

Actual behaviour: The floating tool window closes, but also the Paint.NET application loses focus and the focus is passed to the next application in the task list. Paint.NET also disappears from the Alt-Tab Task Switcher until it receives focus again.

This bug can also be reproduced by using the keyboard only to toggle the floating tools windows via the options in the Window menu, but it does not occur if the mouse is used.

Tested: Paint.NET v3.08 and v3.10 beta, Windows XP.

Link to comment
Share on other sites

Can you post system spec's ?

I am thinking it not getting enough memory to work with and that is why the tool window close and lose focus.

I try it out but the computer I am on right now only has a 32MB of video card and 512MB of RAM. I like to try it on my home computer that has 512MB of Video and 2 GB of RAM but I wont be going home for some time.

Link to comment
Share on other sites

Actually this just repro'd for me I think.

Opened PDN, closed the blank image, then closed the tool windows. Once the last one was gone, Windows jumped back to IE.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Opened PDN, closed the blank image, then closed the tool windows. Once the last one was gone, Windows jumped back to IE.

I just tried it that way and it reproduces for me as well (started with all tool windows open, then pressed F5, F6, F7, F8 ). Seems that there are a number of different combinations that will reproduce it, but when it does happen it's always at the moment when a tool window is supposed to close.

I am thinking it not getting enough memory to work with and that is why the tool window close and lose focus.

If I read between the lines here correctly, I think you were implying that having other programs open was causing a lack of memory (please correct me if I am wrong). The reason I asked you to open other programs is because you can only observe this loss/change of focus if there is another running program that can receive the focus. Even if you just have Paint.NET and Notepad open, it can be reproduced.

I was able to find at least some pattern to reproduce this, but if that doesn't work you could just try pressing the buttons F5 through F8 randomly until something happens! (And then try and remember what order you pressed them!)

Link to comment
Share on other sites

Yeah, it seems to happen rather randomly here for me.

One consistantly reproducible set of steps (at least on my machine) is as follows.

With PDN open and no canvas open:

1) Turn off the Tools window and one other window. It does not matter which.

Example: f5 - f7

2) Turn both windows on in reverse order.

Example: f7 - f5

3) Turn off the tools window.

And focus jumps to the next open program.

I am not a mechanism, I am part of the resistance;

I am an organism, an animal, a creature, I am a beast.

~ Becoming the Archetype

Link to comment
Share on other sites

Yeah, it seems to happen rather randomly here for me.

One consistantly reproducible set of steps (at least on my machine) is as follows.

With PDN open and no canvas open:

1) Turn off the Tools window and one other window. It does not matter which.

Example: f5 - f7

2) Turn both windows on in reverse order.

Example: f7 - f5

3) Turn off the tools window.

And focus jumps to the next open program.

Lol yeah that's actually exactly as I described it to start with (hmm, perhaps I didn't explain that part clearly enough):

3. Using the keyboard, toggle the floating tool windows in an order such that when two floating windows are closed, open the first one then second one and then close the second one.

Yeah I meant open any two windows and then close the last one that you just opened.

Anyway your steps are less ambiguous than mine. :lol:

Link to comment
Share on other sites

Hmm... Indeed you did! I apologize.

I only noticed it with the tools window because f5 is at one end of the shortcut spectrum. So it went f5-f8 turning them off, f8-f5 turning them on, then f5 again and it lost focus.

I must say, I honestly didn't notice that your directions were exactly the same as mine. Sorry for steppin' on your toes!

I am not a mechanism, I am part of the resistance;

I am an organism, an animal, a creature, I am a beast.

~ Becoming the Archetype

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...