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;
|
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 _MetaWaylandDataSource MetaWaylandDataSource;
|
|
|
|
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-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;
|
|
|
|
|
2013-08-30 12:03:30 -04:00
|
|
|
#endif
|