mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 12:12:25 +00:00
Added timestamp parameter to meta_window_change_workspace_by_index().
This commit is contained in:
parent
c1928ead7c
commit
04619df818
@ -4782,7 +4782,8 @@ meta_window_property_notify (MetaWindow *window,
|
|||||||
void
|
void
|
||||||
meta_window_change_workspace_by_index (MetaWindow *window,
|
meta_window_change_workspace_by_index (MetaWindow *window,
|
||||||
gint space_index,
|
gint space_index,
|
||||||
gboolean append)
|
gboolean append,
|
||||||
|
guint32 timestamp)
|
||||||
{
|
{
|
||||||
MetaWorkspace *workspace;
|
MetaWorkspace *workspace;
|
||||||
MetaScreen *screen;
|
MetaScreen *screen;
|
||||||
@ -4800,7 +4801,8 @@ meta_window_change_workspace_by_index (MetaWindow *window,
|
|||||||
|
|
||||||
if (!workspace && append)
|
if (!workspace && append)
|
||||||
{
|
{
|
||||||
guint32 timestamp = meta_display_get_current_time (window->display);
|
if (timestamp == CurrentTime)
|
||||||
|
timestamp = meta_display_get_current_time_roundtrip (window->display);
|
||||||
workspace = meta_screen_append_new_workspace (screen, FALSE, timestamp);
|
workspace = meta_screen_append_new_workspace (screen, FALSE, timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,5 +70,6 @@ gboolean meta_window_showing_on_its_workspace (MetaWindow *window);
|
|||||||
const char* meta_window_get_startup_id (MetaWindow *window);
|
const char* meta_window_get_startup_id (MetaWindow *window);
|
||||||
void meta_window_change_workspace_by_index (MetaWindow *window,
|
void meta_window_change_workspace_by_index (MetaWindow *window,
|
||||||
gint space_index,
|
gint space_index,
|
||||||
gboolean append);
|
gboolean append,
|
||||||
|
guint32 timestamp);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user