Author Topic: Buttons for minimizing and maximizing is missing  (Read 3555 times)

Offline ked

  • Single posting newcomer
  • *
  • Posts: 6
Buttons for minimizing and maximizing is missing
« on: November 05, 2023, 12:55:40 pm »
I've installed C::B 20.03 under latest Ubuntu release for WSL2 (Win 11, 64b), in order to compile code fitted a linux environment using gcc/g++/fortran. All this works fine, but the working window misses the minimize and maximize buttons in the upper right corner which is quite annoying. I'we googled and search around if anyone else have experienced the same, but I can't find anything. Does anyone out there have any idea what causes this error?

Regards,
ked


Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1635
Re: Buttons for minimizing and maximizing is missing
« Reply #1 on: November 05, 2023, 01:17:09 pm »
Are you using X11 or Wayland?

Offline ked

  • Single posting newcomer
  • *
  • Posts: 6
Re: Buttons for minimizing and maximizing is missing
« Reply #2 on: November 05, 2023, 05:01:46 pm »
I think Wayland is the default for Ubuntu 22.04.
echo $XDG_SESSION_TYPE command does not reply anything.
I'm not sure how tings work with WSL2 and Ubuntu since installing an additional graphics server (like VcXsrv) no longer is required.
I'll try to swich to X11 and see if that will work.

Offline ked

  • Single posting newcomer
  • *
  • Posts: 6
Re: Buttons for minimizing and maximizing is missing
« Reply #3 on: November 05, 2023, 05:11:29 pm »
Image attached, I hope.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1635
Re: Buttons for minimizing and maximizing is missing
« Reply #4 on: November 05, 2023, 07:37:15 pm »
There are lots of pages about missing buttons on Wayland, check them. There are also issues with wxWidgets, for example in AUI.

Offline ked

  • Single posting newcomer
  • *
  • Posts: 6
Re: Buttons for minimizing and maximizing is missing
« Reply #5 on: November 06, 2023, 08:42:55 pm »
Running codeblocks from a terminal window like this:
Me@MyDesktop:~$ GDK_BACKEND=x11 codeblocks &
gives me all three buttons min, max, and close.

THANK YOU, Miguel for guiding me towards the Wayland display server and missing buttons issues!