diff options
author | rbuj <[email protected]> | 2020-02-03 13:39:55 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-02-21 17:31:50 +0100 |
commit | 3b6919c5eafb76f36f240f8c5651698539860853 (patch) | |
tree | ba8ada86c24155c94aca9ade30d194eebec7adfc /src/core/display.c | |
parent | 7ffa17976ba5d0549ac2fb8a81c65dd19aac3767 (diff) | |
download | marco-3b6919c5eafb76f36f240f8c5651698539860853.tar.bz2 marco-3b6919c5eafb76f36f240f8c5651698539860853.tar.xz |
remove warning: 'GTimeVal' is deprecated
Diffstat (limited to 'src/core/display.c')
-rw-r--r-- | src/core/display.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/display.c b/src/core/display.c index dc741b32..0214d5e6 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -3658,8 +3658,7 @@ meta_display_begin_grab_op (MetaDisplay *display, display->grab_anchor_root_y = root_y; display->grab_latest_motion_x = root_x; display->grab_latest_motion_y = root_y; - display->grab_last_moveresize_time.tv_sec = 0; - display->grab_last_moveresize_time.tv_usec = 0; + display->grab_last_moveresize_time = 0; display->grab_motion_notify_time = 0; display->grab_old_window_stacking = NULL; #ifdef HAVE_XSYNC @@ -3712,9 +3711,7 @@ meta_display_begin_grab_op (MetaDisplay *display, display->grab_window->sync_request_counter, init); display->grab_window->sync_request_serial = 0; - display->grab_window->sync_request_time.tv_sec = 0; - display->grab_window->sync_request_time.tv_usec = 0; - + display->grab_window->sync_request_time = 0; values.trigger.counter = display->grab_window->sync_request_counter; values.trigger.value_type = XSyncAbsolute; values.trigger.test_type = XSyncPositiveTransition; |