Functions

check_version (required_major, required_minor, required_micro)

error_quark ()

set_client_type (client_type)

windowing_get ()

Details

Libxfce4windowing.check_version(required_major, required_minor, required_micro)
Parameters:
  • required_major (int) – the required major version.

  • required_minor (int) – the required minor version.

  • required_micro (int) – the required micro version.

Returns:

None if the library is compatible with the given version, or a string describing the version mismatch. The returned string is owned by the library and must not be freed or modified by the caller.

Return type:

str or None

Checks that the libxfce4windowing library in use is compatible with the given version. Generally you would pass in the constants Libxfce4windowing.MAJOR_VERSION, Libxfce4windowing.MINOR_VERSION and Libxfce4windowing.MICRO_VERSION as the three arguments to this function; that produces a check that the library in use is compatible with the version of libxfce4windowing the extension was compiled against.

const gchar *mismatch;
mismatch = libxfce4windowing_check_version(LIBXFCE4WINDOWING_MAJOR_VERSION,
                                           LIBXFCE4WINDOWING_MINOR_VERSION,
                                           LIBXFCE4WINDOWING_MICRO_VERSION);
if (G_UNLIKELY(mismatch != NULL)) {
  g_error("Version mismatch: %s", mismatch);
}
Libxfce4windowing.error_quark()
Return type:

int

Libxfce4windowing.set_client_type(client_type)
Parameters:

client_type (Libxfce4windowing.ClientType) – A Libxfce4windowing.ClientType

Sets the type of the application. This is used when sending various messages to control the behavior of other windows, to indicate the source of the control. In general, Libxfce4windowing.ClientType.APPLICATION will be interpreted as automated control from a regular application, and Libxfce4windowing.ClientType.PAGER will be interpreted as user-initiated control from a desktop component application like a pager or dock.

This does nothing on Wayland, but is safe to call under a Wayland session.

New in version 4.19.3.

Libxfce4windowing.windowing_get()
Returns:

A value from the Libxfce4windowing.Windowing enum.

Return type:

Libxfce4windowing.Windowing

Determines the windowing environment that is currently active.