Responding to clicks on focus

  • kazitor
    16th Jan 2019 Member 0 Permalink

    It's not necessarily a bug so I'm raising it here rather than github.

     

    When you click inside the window when it does not have focus, the game doesn't respond to that. For instance, if you try to select an element, nothing will happen. If you try to draw, nothing will happen.

     

    Do you think this is desirable or not? Personally I think it's bad because the window still responds to mouse movement, e.g. an element will receive a red outline on hover and the pen will move around.

  • jacob1
    16th Jan 2019 Developer 0 Permalink
    Just to confirm, this only happens in the snapshots and not the latest release?

    I noticed it started happening when I upgraded to SDL2. I find it really annoying, but I don't know how to fix it at the moment. SDL2 does a few annoying things with the mouse that SDL1.2 did better (which is strange because SDL1.2 had it right, why did they change it).

    I will try finding a solution again later. Another option is that I could make mouse move events not send if the window isn't focused.
  • kazitor
    16th Jan 2019 Member 0 Permalink

    @jacob1 (View Post)

    Dammit, once again I forgot to test in "normal" TPT. It was your mod this happened in.

     

    Yes, the latest release responds properly.

  • Atari
    16th Jan 2019 Member 0 Permalink
    hehehe