Code::Blocks Forums

User forums => Help => Topic started by: peterbaldock on January 27, 2023, 08:02:41 pm

Title: Cannot move or dock IDE (not program) windows
Post by: peterbaldock on January 27, 2023, 08:02:41 pm
I have been using CodeBlocks for nearly 3 years on Ubuntu 20.04, but now I am upgrading all our machines to Ubuntu 22.04, I am getting a consistent problem with some of the IDE windows:

1. If an IDE window is undocked, it cannot be moved or docked - only resized or closed.
2. It seems that any window that opens in the undocked state suffers from this problem, and also if a window is moved from docked to undocked.

System and version numbers:
Name             : Code::Blocks
Version          : 20.03-r11997
SDK Version      : 2.0.0
Scintilla Version: 3.7.5

wxWidgets Library (wxGTK port)
Version 3.0.5 (Unicode: wchar_t, debug level: 1),
compiled at Nov 25 2022 15:51:22

Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.33.

-Computer (typical)
Processor      : Intel(R) Core(TM) i3-10105 CPU @ 3.70GHz
Memory      : 8005MB (3656MB used)
Machine Type      : Desktop
Operating System      : Ubuntu 22.04.1 LTS

g++ (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0

Am I missing something obvious? CB is brilliant, but this new behaviour is frustrating.

All the best,

Pete.

Title: Re: Cannot move or dock IDE (not program) windows
Post by: Miguel Gimenez on January 28, 2023, 12:02:53 pm
Looks like a problem in wxWidgets, see this ticket (https://github.com/wxWidgets/wxWidgets/issues/18372). Are you using Wayland?
Title: Re: Cannot move or dock IDE (not program) windows
Post by: peterbaldock on January 30, 2023, 05:02:25 pm
Thanks, MG

I am not sure it's really the same thing, although I am having a separate problem with wxWidgets (totally different - frames ignore wxSTAY_ON_TOP).

The fact that it is only CodeBlocks IDE windows that exhibit this behaviour, and apps produced by me behave normally in this respect, led me to think it was a C::B problem.

BTW, as you suspected:
$ echo $XDG_SESSION_TYPE
wayland

Pete.
Title: Re: Cannot move or dock IDE (not program) windows
Post by: Miguel Gimenez on January 30, 2023, 05:15:48 pm
You can start a XOrg session to see if it changes anything...
Title: Re: Cannot move or dock IDE (not program) windows
Post by: peterbaldock on January 30, 2023, 05:20:33 pm
Hi MG,

Yes, just did that while you were replying - no problem with X11.

So I'll continue with X11, but does that mean it is Wayland at fault, or is it just that C::B is no longer compatible with Wayland?

Thanks very much for your help. Back to the grind stone.

Pete.
Title: Re: Cannot move or dock IDE (not program) windows
Post by: Miguel Gimenez on January 30, 2023, 05:34:19 pm
As described in the wxWidgets' ticket, gtk_window_begin_move_drag() must be called when using GTK >= 3.20 under Wayland. This is a wxWidgets problem already fixed, but Ubuntu has not updated the libraries yet.