Beef icon indicating copy to clipboard operation
Beef copied to clipboard

The console window is raised over any created windows when debugging

Open 0xSPIRIT opened this issue 2 years ago • 2 comments

Version: Release 0.43.4

On Windows, when debugging any C program (win64) that creates a window, the console output window is raised to the top automatically, over my window. I've tested this with using SDL2 and the Win32 API itself to create the window.

It's just a bit annoying to need to alt-tab to my window every time I debug.

Here's some screenshots showing what I mean. image image

0xSPIRIT avatar Sep 10 '23 14:09 0xSPIRIT

Maybe a workaround for you could be to call SDL_RaiseWindow in your code https://wiki.libsdl.org/SDL2/SDL_RaiseWindow

I had the same problem. I am using Raylib and calling SetWindowFocused() fixed it for me. SetWindowFocused seems to either call glfwFocusWindow or SDL_RaiseWindow https://github.com/search?q=repo%3Araysan5/raylib%20SetWindowFocused&type=code

LeoDeschaux avatar Feb 22 '24 00:02 LeoDeschaux

Yeah that's what I did back when I had this issue :)

0xSPIRIT avatar Feb 23 '24 04:02 0xSPIRIT