Score:3

I have a large window that won't resize, how can I fix it?

hm flag

Codeblocks is taking a lot portion of my screen.I want it to take less screen (preferably upto the red rectangular size i have drawn).Is there any way I can do it ?

I can resize the height, but that's not what I want. It seems I cannot change the width though.

enter image description here

Nmath avatar
ng flag
Can you not resize the window? What is the problem?
hm flag
I can resize it.In this way I can make the length shorter(which I don't want) but the width remain same. @Nmath
Nmath avatar
ng flag
Perhaps this is a limitation of this particular application that it has a minimum width? Have you exhausted all application settings/preferences from within the application?
hm flag
I checked all the settings.There is no option like that
Jacob Vlijm avatar
by flag
The minwidth of codeblocks' windows is equivalent to the width of its menu items, so it can't be resized below that.
hm flag
@Community What additional information you need to know ?
hm flag
@JacobVlijm thanks for all the edits
Score:4
by flag

Minimum window size

Windows have a minimum size, and can't (obviously) be resized below these specifications.

If you are on X (not Wayland) You can see what is the minimum width & hight of a window* : open a terminal and type the command:

~$ xprop WM_NORMAL_HINTS

Then press Return. Subsequently, click on the target window.

The output will look like:

WM_NORMAL_HINTS(WM_SIZE_HINTS):
        program specified minimum size: 551 by 159
        program specified base size: 0 by 0
        window gravity: NorthWest

In the case of Codeblocks, it turns out the window's minwidth is at least the width of its menu bar.

*For the exact size & position of a window, we also need to take into account the _NET_FRAME_EXTENTS and _GTK_FRAME_EXTENTS

Will avatar
id flag
Nice answer. Is there any way to modify those minimum values?
Jacob Vlijm avatar
by flag
@Will, I am afraid not, it's often in the code of an application, or if not, defined by the used toolkit.
hm flag
I am using ubuntu 20.04 . Run the command and got this output WM_NORMAL_HINTS(WM_SIZE_HINTS): program specified minimum size: 387 by 145 program specified resize increment: 10 by 22 program specified base size: 66 by 101 window gravity: NorthWest I got my answer on your above comments "The minwidth of codeblocks' windows is equivalent to the width of its menu items, so it can't be resized below that" .You can write it as an answer so that I can accept it
Jacob Vlijm avatar
by flag
@yoMama33 right, edited it in.
hm flag
Well i got an option to disable plugin.I disable some plugin.Thus, Some option from menubar is gone.Hence, I was able to make shorter width
Jacob Vlijm avatar
by flag
@yoMama33 Yay! yeah, I thought something like that. I checked, installed codeblocks, my menu is smaller, but still won't resize to below the menu size.
hm flag
@JacobVlijm Probably you have not installed contrib plugin .So there are less option in your menu bar compare to me. Btw Thank you
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.