ui: Don't use grab ops for grab negotation

Desktop / GNOME / Mutter - Jasper St. Pierre [mecheye.net] - 24 April 2014 12:36 UTC

Grab operations are now always taken on the backend connection, and this breaks GTK+'s event handling.

Instead of taking a grab op, just do the handling ourselves. The GTK+ connection will get an implicit grab, which means pointer / keyboard events won't be sent to the rest of mutter, which is good.

ebb6847 ui: Don't use grab ops for grab negotation
src/core/core.c | 30 ----
src/core/core.h | 2 -
src/core/display-private.h | 1 -
src/core/display.c | 43 +----
src/meta/common.h | 24 ---
src/ui/frames.c | 371 +++++++++-----------------------------------
src/ui/frames.h | 6 +-
src/ui/menu.c | 2 -
8 files changed, 86 insertions(+), 393 deletions(-)

Upstream: git.gnome.org


  • Share