mirror of
https://github.com/brl/mutter.git
synced 2025-02-21 07:24:09 +00:00
x11: Add intermediate helper function to update X11 window after sync
This function will be added some more logic in future commits. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2175>
This commit is contained in:
parent
6a80bc3a54
commit
a22c66fa51
@ -25,6 +25,7 @@
|
|||||||
#include "core/window-private.h"
|
#include "core/window-private.h"
|
||||||
#include "meta/meta-x11-errors.h"
|
#include "meta/meta-x11-errors.h"
|
||||||
#include "x11/meta-x11-display-private.h"
|
#include "x11/meta-x11-display-private.h"
|
||||||
|
#include "x11/window-x11-private.h"
|
||||||
|
|
||||||
/* Each time the application updates the sync request counter to a new even value
|
/* Each time the application updates the sync request counter to a new even value
|
||||||
* value, we queue a frame into the windows list of frames. Once we're painting
|
* value, we queue a frame into the windows list of frames. Once we're painting
|
||||||
@ -206,12 +207,7 @@ sync_request_timeout (gpointer data)
|
|||||||
|
|
||||||
if (window == window->display->grab_window &&
|
if (window == window->display->grab_window &&
|
||||||
meta_grab_op_is_resizing (window->display->grab_op))
|
meta_grab_op_is_resizing (window->display->grab_op))
|
||||||
{
|
meta_window_x11_check_update_resize (window);
|
||||||
meta_window_update_resize (window,
|
|
||||||
window->display->grab_last_edge_resistance_flags,
|
|
||||||
window->display->grab_latest_motion_x,
|
|
||||||
window->display->grab_latest_motion_y);
|
|
||||||
}
|
|
||||||
|
|
||||||
return G_SOURCE_REMOVE;
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
@ -316,10 +312,7 @@ meta_sync_counter_update (MetaSyncCounter *sync_counter,
|
|||||||
|
|
||||||
/* This means we are ready for another configure;
|
/* This means we are ready for another configure;
|
||||||
* no pointer round trip here, to keep in sync */
|
* no pointer round trip here, to keep in sync */
|
||||||
meta_window_update_resize (window,
|
meta_window_x11_check_update_resize (window);
|
||||||
window->display->grab_last_edge_resistance_flags,
|
|
||||||
window->display->grab_latest_motion_x,
|
|
||||||
window->display->grab_latest_motion_y);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,6 +97,8 @@ void meta_window_x11_queue_update_icon (MetaWindowX11 *window_x11);
|
|||||||
|
|
||||||
void meta_window_x11_initialize_state (MetaWindow *window);
|
void meta_window_x11_initialize_state (MetaWindow *window);
|
||||||
|
|
||||||
|
void meta_window_x11_check_update_resize (MetaWindow *window);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -4287,3 +4287,12 @@ meta_window_x11_is_awaiting_sync_response (MetaWindow *window)
|
|||||||
|
|
||||||
return meta_sync_counter_is_waiting_response (&priv->sync_counter);
|
return meta_sync_counter_is_waiting_response (&priv->sync_counter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
meta_window_x11_check_update_resize (MetaWindow *window)
|
||||||
|
{
|
||||||
|
meta_window_update_resize (window,
|
||||||
|
window->display->grab_last_edge_resistance_flags,
|
||||||
|
window->display->grab_latest_motion_x,
|
||||||
|
window->display->grab_latest_motion_y);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user