[Wayland-bugs] [Bug 736742] wayland: Pass shadow width to compositor

gtk+ (bugzilla.gnome.org) bugzilla at gnome.org
Tue Nov 11 03:25:08 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=736742
  gtk+ | Backend: Wayland | unspecified

--- Comment #6 from Carlos Garnacho <carlosg at gnome.org> 2014-11-11 11:25:05 UTC ---
Created an attachment (id=290407)
 View: https://bugzilla.gnome.org/attachment.cgi?id=290407
 Review: https://bugzilla.gnome.org/review?bug=736742&attachment=290407

wayland: Pass shadow with to the compositor

Use xdg_surface_set_window_geometry() to tell the compositor about the
shadow widths, this makes some gnome-shell/mutter features (edge resistance,
frames around windows in the overview, side maximization, ...) work alright
with GTK+.

In order to add this, some other places in gdkwindow-wayland had to gain
some knowledge about margins:

- xdg_surface_configure() now syncs the shadow after applying the state,
  and gdk_wayland_window_set_shadow_width() possibly reconfigures the
  window in order to preserve window geometry. This is necessary to keep
  shadows in sync with state/geometry changes, as this does not happen
  all at once.
- xdg_popups relative to an xdg_surface are shown relative to buffer
  coordinates, so the left/top margins must be added there.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the wayland-bugs mailing list