News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Cannot move or dock IDE (not program) windows

Started by peterbaldock, January 27, 2023, 08:02:41 PM

Previous topic - Next topic

peterbaldock

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.


Miguel Gimenez

Looks like a problem in wxWidgets, see this ticket. Are you using Wayland?

peterbaldock

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.

Miguel Gimenez

You can start a XOrg session to see if it changes anything...

peterbaldock

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.

Miguel Gimenez

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.