2013-08-30 16:03:30 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
* 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef META_WAYLAND_TYPES_H
|
|
|
|
#define META_WAYLAND_TYPES_H
|
|
|
|
|
|
|
|
typedef struct _MetaWaylandCompositor MetaWaylandCompositor;
|
|
|
|
|
|
|
|
typedef struct _MetaWaylandSeat MetaWaylandSeat;
|
2016-09-12 15:17:28 +00:00
|
|
|
typedef struct _MetaWaylandInputDevice MetaWaylandInputDevice;
|
2013-08-30 16:03:30 +00:00
|
|
|
typedef struct _MetaWaylandPointer MetaWaylandPointer;
|
|
|
|
typedef struct _MetaWaylandPointerGrab MetaWaylandPointerGrab;
|
|
|
|
typedef struct _MetaWaylandPointerGrabInterface MetaWaylandPointerGrabInterface;
|
2015-02-11 09:34:15 +00:00
|
|
|
typedef struct _MetaWaylandPopupGrab MetaWaylandPopupGrab;
|
|
|
|
typedef struct _MetaWaylandPopup MetaWaylandPopup;
|
2016-01-21 09:01:08 +00:00
|
|
|
typedef struct _MetaWaylandPopupSurface MetaWaylandPopupSurface;
|
2013-08-30 16:03:30 +00:00
|
|
|
typedef struct _MetaWaylandKeyboard MetaWaylandKeyboard;
|
2015-04-07 13:54:41 +00:00
|
|
|
typedef struct _MetaWaylandKeyboardGrab MetaWaylandKeyboardGrab;
|
|
|
|
typedef struct _MetaWaylandKeyboardGrabInterface MetaWaylandKeyboardGrabInterface;
|
2014-04-24 12:50:47 +00:00
|
|
|
typedef struct _MetaWaylandTouch MetaWaylandTouch;
|
2015-05-18 11:24:27 +00:00
|
|
|
typedef struct _MetaWaylandDragDestFuncs MetaWaylandDragDestFuncs;
|
|
|
|
typedef struct _MetaWaylandDataOffer MetaWaylandDataOffer;
|
2014-07-10 14:31:08 +00:00
|
|
|
typedef struct _MetaWaylandDataDevice MetaWaylandDataDevice;
|
2013-08-30 16:03:30 +00:00
|
|
|
|
2015-10-27 14:28:10 +00:00
|
|
|
typedef struct _MetaWaylandTabletManager MetaWaylandTabletManager;
|
2015-01-09 16:20:22 +00:00
|
|
|
typedef struct _MetaWaylandTabletSeat MetaWaylandTabletSeat;
|
2015-02-04 17:19:08 +00:00
|
|
|
typedef struct _MetaWaylandTabletTool MetaWaylandTabletTool;
|
2015-01-09 16:20:22 +00:00
|
|
|
typedef struct _MetaWaylandTablet MetaWaylandTablet;
|
2016-06-22 12:45:43 +00:00
|
|
|
typedef struct _MetaWaylandTabletPad MetaWaylandTabletPad;
|
|
|
|
typedef struct _MetaWaylandTabletPadGroup MetaWaylandTabletPadGroup;
|
2016-05-10 15:12:08 +00:00
|
|
|
typedef struct _MetaWaylandTabletPadStrip MetaWaylandTabletPadStrip;
|
2016-05-10 15:10:25 +00:00
|
|
|
typedef struct _MetaWaylandTabletPadRing MetaWaylandTabletPadRing;
|
2015-01-09 16:20:22 +00:00
|
|
|
|
2013-08-30 16:03:30 +00:00
|
|
|
typedef struct _MetaWaylandBuffer MetaWaylandBuffer;
|
2014-10-08 03:23:55 +00:00
|
|
|
typedef struct _MetaWaylandRegion MetaWaylandRegion;
|
2013-08-30 16:03:30 +00:00
|
|
|
|
|
|
|
typedef struct _MetaWaylandSurface MetaWaylandSurface;
|
|
|
|
|
wayland: Send wl_surface.enter and wl_surface.leave
Whenever a MetaSurfaceActor is painted, update the list of what outputs
the surface is being drawed upon. Since we do this on paint, we
effectively avoids this whenever the surface is not drawn, for example
being minimized, on a non-active workspace, or simply outside of the
damage region of a frame.
DND icons and cursors are not affected by this patch, since they are not
drawn as MetaSurfaceActors. If a MetaSurfaceActor or a parent is cloned,
then we'll check the position of the original actor again when the clone is
drawn, which is slightly expensive, but harmless. If the MetaShapedTexture
instead is cloned, as GNOME Shell does in many cases, then these clones
will not cause duplicate position checks.
https://bugzilla.gnome.org/show_bug.cgi?id=744453
2015-02-03 07:49:52 +00:00
|
|
|
typedef struct _MetaWaylandOutput MetaWaylandOutput;
|
|
|
|
|
wayland-surface: Don't do pending move/resizes on all commits
We assume in meta_window_wayland_move_resize that the next commit that
changes the geometry will always be for our next pending operation, so
if we have a move pending on a resize, the next commit will trigger the
move. This is, of course, fundamentally wrong.
We broke this assumption even more now that we don't fizzle out calls to
meta_window_move_resize_internal and now call it on every commit, which
means that a simple damage and then commit would complete a pending
move.
This was even broken by apps like weston-terminal, which, when clicking
on the maximize button, first redraws the terminal with the maximize
button state back on hover on press, and would only redraw when it got
the configure event with the coordinates.
To track the correct commit to apply the move for, we implement the
ack_configure request and ignore all move/resizes that happen before
that.
Right now, we actually fizzle out the entire move/resize if there's a
future pending configure we're waiting on.
2014-07-27 15:23:17 +00:00
|
|
|
typedef struct _MetaWaylandSerial MetaWaylandSerial;
|
|
|
|
|
2015-08-09 13:24:16 +00:00
|
|
|
typedef struct _MetaWaylandPointerClient MetaWaylandPointerClient;
|
|
|
|
|
2013-08-30 16:03:30 +00:00
|
|
|
#endif
|