this post was submitted on 23 Nov 2023
21 points (100.0% liked)

Godot

6001 readers
59 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

[email protected]

Credits

founded 2 years ago
MODERATORS
 

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.

top 5 comments
sorted by: hot top controversial new old
[–] nargacu83 10 points 1 year ago (1 children)

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 5 points 1 year ago (1 children)

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 1 points 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!

[–] [email protected] 4 points 1 year ago (1 children)

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

[–] [email protected] 3 points 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.