• Logo
    Mir
  • canonical.com/mir
  • More resources
    • Discourse
    • Mattermost
    • Matrix
    • GitHub
Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Mir v2.26.0 documentation
Mir v2.26.0 documentation
  • Tutorials for building Wayland compositors with Mir
    • Getting started with Mir
    • Write your first Wayland compositor
  • Mir how-to guides
    • How to handle keyboard input
    • How to integrate a custom Wayland protocol
    • How to specify startup applications
    • Specifying CSD/SSD preference in Mir compositors
  • Mir explanation guides
    • Accessibility methods in Mir
    • Mir libraries for compositor authors
    • Using Mir to build a desktop environment
    • Graphics driver quirks in Mir
    • Energy efficiency
    • Performance considerations for Mir-based compositors
    • Mir platform support: graphics and input backends
    • Security considerations for Mir-based compositors
    • Window positioning under Wayland
    • XDG portal support in Mir
  • Mir reference
    • Mir C++ API documentation
    • Compositors built with Mir
    • Introducing the MirAL API
    • Linux kernel requirements for Mir
  • Configuring Mir
    • Configuring Mir: how-to guides
      • How to calibrate a touchscreen device
      • How to enable remote desktop
      • How to enable screencasting
      • How to use on-screen keyboards
    • Configuring Mir: explanations
      • Mir component reports
    • Mir configuration reference
      • Mir configuration options
  • Contributing to Mir
    • Contributing to Mir: how-to guides
      • How to debug Mir snaps
      • How to enable GPU support for snaps using gpu-2404
      • Getting involved in Mir
      • How to measure code coverage
      • How to update Wayland Explorer for Mir
      • How to release a new Mir version
      • How to test Mir for a release
      • How to update symbols map files
      • Using checkbox-mir to validate your snap graphical environment
    • Contributing to Mir: explanations
      • Mir architecture
      • Mir input platform APIs
      • Mir libraries and module architecture
    • Mir contributor reference
      • Mir continuous integration
      • Mir C++ style guide
      • A brief guide for versioning symbols in the Mir DSOs
  • Mir release notes
Back to top

Function mir_event_get_window_placement_event¶

  • Defined in File event.h

Function Documentation¶

MirWindowPlacementEvent const *mir_event_get_window_placement_event(MirEvent const *event)¶

Retrieve the MirWindowPlacementEvent associated with a MirEvent of type mir_event_type_window_placement.

The event signifies that the the server has fulfilled a request for relative window placement.

Parameters:

event – [in] The event

Returns:

The associated MirWindowPlacementEvent

Copyright © 2026, Canonical Ltd.
Manage your tracker settings
Contents
  • Function mir_event_get_window_placement_event
    • Function Documentation
      • mir_event_get_window_placement_event()