Skip to content

Enable GTK4 build with a specific configure option.

Julien Ropé requested to merge jrope/vd_agent:wayland_steps into master
  • Adding the "--with-gtk4" option to ask for GTK4, keeping it separate from the default "--with-gtk" so that we can still build the agent with GTK3. GTK4 will be used to solve several issues under Wayland related to multi-monitor situations.
  • Change some calls to be compatible with modified API.
  • Also add a build test to CI script.

Important note about the clipboard: Using the Wayland backend in GTK is introducing new issues with clipboard that we can't fix for now. So when building for GTK4, we will actually not use GTK for the clipboard.

To achieve this, some build definitions are modified:

  • WITH_GTK is kept, but is only used for GTK initialization and header import
  • WITH_GTK is replaced by USE_GTK_FOR_CLIPBOARD for all clipboard-specific code. It is enabled when building with GTK3.
  • USE_GTK_FOR_MONITORS is added, and will be used for monitor-specific code. It is enabled when building with GTK4.

Signed-off-by: Julien Ropé jrope@redhat.com

Edited by Julien Ropé

Merge request reports

Loading