I’m just starting out with Godot and I’ve run into some strange or unwanted behaviors. Maybe some of you can help me fix them. I’m currently running Godot on arch linux with x11/i3 as my desktop environment.

1.) Godot got some really aggressive focus. The editor grabs the focus mid typing in other applications and suddenly I’m tying there. With i3 being a tiling manager, Godot is sometimes passively resized when I resize another window - of course it also immediately gets itself focused and messed the resizing up.

2.) The focus within Godot is even stranger. I can ctrl c + ctrl v nodes just fine on a freshly opened project. But once I’ve a clicked a single property in the import or inspector docker, ctrl c + ctrl v will work exclusively there. Even if the import docker is hidden underneath the scene docker where I’m clicking the nodes I want to copy/paste.

3.) The last one is about using an external editor. Whenever Godot encounters a bug, it will automatically open the script in question. Which is annoying because I use vim for everything and will throw warnings at me, that the file has been changed. I’ve looked through all editor settings and tried setting vim as my external editor but the behavior persists.

  • nargacu83@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    For the focus, you’re not missing anything, it’s actually a bug introduced in 4.0 with the ability to have multiple windows.

    I made an issue about this a year ago: https://github.com/godotengine/godot/issues/68305

    For the external editor, have you tried disabling the setting called Open Dominant Script? Made my life easier when i was using an external editor.

    • De_Narm@lemmy.worldOP
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      Thank you, that already cleared a lot of things up.

      The setting did improve it, but the debugger still does not cooperate - guess I’ll have to live with that one. If I could, I’d just disable the built-in editor altogether.

      • nargacu83@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        You can disable the built-in editor! …but it would not open any scripts in your external editor, which is kind of annoying. It could also disable the debugger, i didn’t use the full potential of an external editor for Godot, you’d have to see for yourself on this one!

  • Julian@lemm.ee
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    As a workaround for the copy/paste bug until it gets fixed, control+d will duplicate a node.

    • anteaters@feddit.de
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      Though be careful with this as the duplicated nodes will use shared instances of resources instead of instantiating their own. This can lead to unexpected behaviour if you don’t make resources unique after duplicating.