diff options
author | rbuj <[email protected]> | 2020-02-03 13:39:55 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-02-21 17:30:49 +0100 |
commit | db25f27fd3670e2ebc8ed6f6fa5f918a3251fc96 (patch) | |
tree | d101c7c47ceb828c7717273709be80cc99518aea /src/core/display.c | |
parent | 9f9647d27b1d7d01b39241ee3a86f3dfc24196e0 (diff) | |
download | marco-db25f27fd3670e2ebc8ed6f6fa5f918a3251fc96.tar.bz2 marco-db25f27fd3670e2ebc8ed6f6fa5f918a3251fc96.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; |