2013-08-30 12:03:30 -04: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;
|
|
|
|
typedef struct _MetaWaylandPointer MetaWaylandPointer;
|
|
|
|
typedef struct _MetaWaylandPointerGrab MetaWaylandPointerGrab;
|
|
|
|
typedef struct _MetaWaylandPointerGrabInterface MetaWaylandPointerGrabInterface;
|
2015-02-11 04:34:15 -05:00
|
|
|
typedef struct _MetaWaylandPopupGrab MetaWaylandPopupGrab;
|
|
|
|
typedef struct _MetaWaylandPopup MetaWaylandPopup;
|
2013-08-30 12:03:30 -04:00
|
|
|
typedef struct _MetaWaylandKeyboard MetaWaylandKeyboard;
|
2015-04-07 09:54:41 -04:00
|
|
|
typedef struct _MetaWaylandKeyboardGrab MetaWaylandKeyboardGrab;
|
|
|
|
typedef struct _MetaWaylandKeyboardGrabInterface MetaWaylandKeyboardGrabInterface;
|
2014-04-24 08:50:47 -04:00
|
|
|
typedef struct _MetaWaylandTouch MetaWaylandTouch;
|
2015-05-18 07:24:27 -04:00
|
|
|
typedef struct _MetaWaylandDragDestFuncs MetaWaylandDragDestFuncs;
|
|
|
|
typedef struct _MetaWaylandDataOffer MetaWaylandDataOffer;
|
2014-07-10 10:31:08 -04:00
|
|
|
typedef struct _MetaWaylandDataDevice MetaWaylandDataDevice;
|
2013-08-30 12:03:30 -04:00
|
|
|
|
|
|
|
typedef struct _MetaWaylandBuffer MetaWaylandBuffer;
|
2014-10-07 23:23:55 -04:00
|
|
|
typedef struct _MetaWaylandRegion MetaWaylandRegion;
|
2013-08-30 12:03:30 -04: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 02:49:52 -05: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 11:23:17 -04:00
|
|
|
typedef struct _MetaWaylandSerial MetaWaylandSerial;
|
|
|
|
|
2015-08-09 09:24:16 -04:00
|
|
|
typedef struct _MetaWaylandPointerClient MetaWaylandPointerClient;
|
|
|
|
|
2013-08-30 12:03:30 -04:00
|
|
|
#endif
|