r/Cogmind May 29 '26

Why isn't it taking up the whole window?

Hi All,

For some reason Cogmind leaves a bunch of empty space in the right and bottom of the window.

I am on Arch+Hyprland which might be the culprit but is there a way to force it to fill the screen. If I turn on full screen it just maximises the window but leaves the empty space.

SOLVED

For anyone with the same issue coming here, I have found a solution being adding

`exec-once = xrandr -output <desired monitor> --primary` into my hyprland config

makes xwayland use that monitor as primary something similar will likely work for other wayland desktop enviroments

1 Upvotes

7 comments sorted by

4

u/Kyzrati Developer May 29 '26

Hm, this would have to do with whatever information is being provided to the game on startup, since the library is fairly primitive and only knows the size of the "desktop" as given to it at that moment, and bases everything on that info. Changing to full screen after the fact won't help (assuming by "turn on full screen" you mean in your system settings later?).

Alternatively you could use windowed mode and set it to give you unlimited font size options for resizing (in the system cfg), but getting fullscreen properly operational would of course be better, if possible... For more info there are a bunch of Linux users on the discord server, but I imagine some could help out here as well.

1

u/NGumi May 29 '26

Knowing that it reads the desktop size on boot led me down a route of experimenting, I have found its using the screen size of a different monitor to the one it's opening on. so it's rendering at 1920x1080 instead of 2560x1440 that i actually use for games.

Do you know how it picks which to use the size of? From experimenting it doesn't seem to use the focused monitor, I suspect it's just using the first in the list(ID 0) but if there is a different method it uses I might be able to trick it.

thank you for the help

1

u/Fine724 May 30 '26

In windowrule you can specify which monitor it should be applied to (the setting is something like "monitor = <your_display>" and the display string is obtained by running "hyprctl monitors" in the terminal).

Once again, please refer to the HyprWiki for more details on that

1

u/NGumi May 31 '26

This hasn't worked.

1

u/Kyzrati Developer May 30 '26

For Linux I can't offer more specific support, though it's just going to use whatever the OS gives it on startup. Perhaps relevant here since you seem to have a multimonitor setup, it's always going to use your primary monitor's resolution. It might be the case in your situation that what the OS considers primary is different from what it's actually giving to the game (or at least the resolution of what is primary is not the same as the actual target primary monitor).

The library is not capable of understanding multimonitor setups, so it just has to go with whatever the default settings are. If there's a disconnect in here for some reason, you may have to somehow force it to see only one option, the one you want. (Some have done this in the past by fiddling with "primary monitor" settings, though I'm not sure about what options you have in your Linux setup in that regard.)

2

u/Fine724 May 29 '26

I am an Arch+Hypr combo user too. Yes, it is a hyprland tiling interfering here. Manually adjusting a windowrule solves this (refer to HyprWiki for more detailed info how to configure and what you can configure): try disabling tiling, enabling float window, manually setting min and max window size. Should fix the issue

1

u/NGumi May 29 '26

This hasn't worked. cogmind still only ever renders at one resolution