1. 06 Dec, 2018 1 commit
  2. 05 Dec, 2018 8 commits
  3. 04 Dec, 2018 6 commits
    • Jonas Ådahl's avatar
      stack: Don't place Wayland popups in o-r layer · 666bef7a
      Jonas Ådahl authored
      Placing persistant Wayland popups (e.g. not menus etc) in the o-r layer
      breaks stacking order with other window trees (e.g. other client
      windows), as the menu would get stuck in the o-r layer, i.e. on top,
      even if the parent of the popup got lowered.
      
      Fix this by placing the popups in the normal layer, relying on
      transient-ness to keep stacking correct.
      666bef7a
    • Jonas Ådahl's avatar
      wayland/surface: Don't make destoryed actor reactive · 19e3c216
      Jonas Ådahl authored
      When destructing a xdg_toplevel, we'll disassociate the actor from the
      MetaWaylandSurface, to allow it to animate out. After having done this,
      avoid trying to set it as unreactive when unsetting the window.
      
      This fixes the runtime warning:
      
      clutter_actor_set_reactive: assertion 'CLUTTER_IS_ACTOR (actor)' failed
      19e3c216
    • Jonas Ådahl's avatar
      wayland/surface: Intersect buffer damage with buffer rect · da5a2d3c
      Jonas Ådahl authored
      Before processing the buffer damage region, intersect it with the buffer
      rectangle to avoid trying to damage content outside the surface.
      
      This fixes the runtime warning "GL error (1281): Invalid value"
      happening when a client posts too large buffer damage larger.
      da5a2d3c
    • Jonas Ådahl's avatar
      backend/native: Remove leftover stage view checks · 7226c5c7
      Jonas Ådahl authored
      We haven't supported disabling stage views in the native backend since
      
      commit 70edc7dd
      Author: Jonas Ådahl <jadahl@gmail.com>
      Date:   Mon Jul 24 12:31:32 2017 +0800
      
          backends/native: Stop supporting stage views being disabled
      
      There were still some left over checks; lets remove them.
      
      !343
      7226c5c7
    • Georges Basile Stavracas Neto's avatar
      clutter/stage-cogl: Disable buffer age when painting red damage · acacd3dd
      Georges Basile Stavracas Neto authored
      This is to ensure we're rendering a red damage area that actually
      represents what is being damaged.
      
      Fixes an always-fullscreen red damage on bare metal Wayland and
      GNOME Shell.
      acacd3dd
    • Georges Basile Stavracas Neto's avatar
      clutter/stage-cogl: Add option to visualize damaged regions · 20b271fa
      Georges Basile Stavracas Neto authored
      This is useful to visualize which parts of the screen are being
      damaged.
      
      Add a new 'damage-region' value for CLUTTER_PAINT and paint the
      damaged regions accordingly.
      20b271fa
  4. 03 Dec, 2018 4 commits
    • Robert Mader's avatar
      wayland/surface: Add support for buffer transforms · e4de9ed5
      Robert Mader authored
      This adds the required bits to wayland surfaces and ties them up
      to the compositor parts.
      
      The central part here is to recalculate the surface size accordingly
      and to translate surface damage into buffer damage.
      
      The choosen approach additionally lays groundwork for wp_viewporter
      support, which is closely related in its nature.
      
      A further explanation of buffer transforms from the specification:
      > The purpose of this request is to allow clients to render content
      > according to the output transform, thus permitting the compositor
      > to use certain optimizations even if the display is rotated.
      > Using hardware overlays and scanning out a client buffer for
      > fullscreen surfaces are examples of such optimizations.
      e4de9ed5
    • Robert Mader's avatar
      region-utils: Add API to transform an integer region · 452ef4d5
      Robert Mader authored
      The added API requires additional width and height arguments
      to calculate transformed coordinates.
      452ef4d5
    • Robert Mader's avatar
      shaped-texture: Add support for texture transform · 1467b6b0
      Robert Mader authored
      This adds the necessary bits to support Wayland buffer transforms.
      The main part here is to properly setup the Cogl pipeline
      and to recalculate the size of the painted area accordingly,
      so culling etc. still works.
      
      The choosen approach additionally lays groundwork for Wayland
      wp_viewporter support.
      
      !322
      1467b6b0
    • Javier Jardón's avatar
      autogen.sh: Don't run intltoolize · 9ca6c742
      Javier Jardón authored
      Mutter hasn't depended on intltool for a long time.
      
      This completes 3248c685
      
      Related: gnome-build-meta#104
      9ca6c742
  5. 01 Dec, 2018 5 commits
    • Ting-Wei Lan's avatar
      tests: Fix warnings reported by shellcheck · 319500e4
      Ting-Wei Lan authored
      This commit includes following fixes for a few shell scripts:
      
      1. Follow the best practice of quoting variables everywhere unless they
         are used in places where word-splitting and globbing can never happen.
      
      2. Replace `command` with $(command) because the latter is easier to use
         and read.
      
      3. Don't use "$@" in places expecting a string because it is an array
         of strings instead of a single string.
      319500e4
    • Ting-Wei Lan's avatar
      build: Don't hardcode the path of bash · b2e75b5d
      Ting-Wei Lan authored
      Bash is not always installed in /bin and we should not hardcode the path
      of it in source code which is expected to be built on many operating
      systems and distributions.
      
      Since most scripts using #!/bin/bash here doesn't have any bashism,
      they can be converted to #!/bin/sh instead of using /usr/bin/env trick.
      b2e75b5d
    • Ting-Wei Lan's avatar
      365ea2fd
    • Carlos Garnacho's avatar
      wayland: Fix DnD actor set up · 88f82284
      Carlos Garnacho authored
      Commit 70036429 mixed drag_origin and drag_surface, leading to warnings
      and invisible drag icon. Fix this up so we correctly set up the feedback
      actor. This will correctly display the DnD icon alongside the pointer.
      88f82284
    • Carlos Garnacho's avatar
      wayland: Make DnD role inherit from MetaWaylandActorSurface · f8cd1e55
      Carlos Garnacho authored
      It is meant to hold surfaces that require a ClutterActor, just like wl/xdg
      shell surfaces and subsurfaces. Make it inherit from MetaWaylandActorSurface
      so it gets that for free.
      
      The type declaration is also made completely private, in order to avoid
      cyclic dependency between meta-wayland-surface.h and
      meta-wayland-actor-surface.h. We just require the GType fro assign_role()
      anyway.
      f8cd1e55
  6. 30 Nov, 2018 3 commits
    • Daniel van Vugt's avatar
      renderer-native: Advertise COGL_FEATURE_ID_PRESENTATION_TIME · f6f188da
      Daniel van Vugt authored
      Since it's now implemented (e9e4b2b7). Fortunately forgetting to
      advertise it didn't matter because there isn't any code yet that
      checks for it.
      f6f188da
    • Carlos Garnacho's avatar
      backends/x11: Flush connection after ungrab · 262a3ecb
      Carlos Garnacho authored
      Modal ungrabs may be followed by other clients trying to grab themselves,
      flush the connection so we ensure the right order of events on the Xserver
      side.
      
      An example of this is js/ui/modalDialog.js in gnome-shell, as the alt-F2
      dialog may launch X11 clients trying to grab themselves, commit a40daa3c22
      in gnome-shell handled the case and added a gdk_display_sync() call to
      ensure no grab existed at the time of executing.
      
      This commit aims to achieve the same built in MetaBackend. A full sync
      seems excessive though, as we just need to make sure the server got the
      messages queued before the other side tries to grab, a XFlush seems
      sufficient for this.
      262a3ecb
    • Daniel van Vugt's avatar
      tools: Remove obsolete ppa-magic.py · 231aadd3
      Daniel van Vugt authored
      231aadd3
  7. 29 Nov, 2018 1 commit
    • Jonas Ådahl's avatar
      backend/x11/nested: Always claim the lid is open · c8db8bbe
      Jonas Ådahl authored
      The nested backend used the value from udev, meaning that one couldn't
      configure the fake monitor if the laptop panel of the host was closed.
      Avoid this annoyance by always having the nested backend claiming the
      lid is open.
      c8db8bbe
  8. 27 Nov, 2018 5 commits
  9. 26 Nov, 2018 3 commits
    • Daniel van Vugt's avatar
      clutter: Remove erroneous "fixed point" comment · 557b2a0e
      Daniel van Vugt authored
      The function `clutter_actor_transform_stage_point` actually operates
      almost entirely in floating point.
      557b2a0e
    • Niels De Graef's avatar
      monitor-manager: remove get_edid_file() vfunc · 49cb691b
      Niels De Graef authored
      It wasn't implemented by any subclass, it's not provided by DRM either.
      And even if a subclass were to have only a file available, it could read
      it into a GBytes as well and just use `read_edid()`.
      
      Found this while working on !269.
      49cb691b
    • Florian Müllner's avatar
      x11: Remove hide-titlebar-when-maximized support · 6e1b14b2
      Florian Müllner authored
      It's a UI pattern that has been superseded by client-side decorations,
      apps that used to set the hint have generally moved on to headerbars.
      Given that and the limitation to server-side decorated X11 windows,
      GTK4 removed the client-side API for setting the hint, it's time to
      follow suite and retire the feature.
      
      !221
      6e1b14b2
  10. 23 Nov, 2018 4 commits