From 4886fe6d173b199b31a111d47706e66289129100 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Tue, 24 Aug 2021 15:13:42 -0700 Subject: [PATCH] Move window correctly --- src/x.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/x.rs b/src/x.rs index 74ef039e..8d4a679d 100644 --- a/src/x.rs +++ b/src/x.rs @@ -143,11 +143,5 @@ pub unsafe fn set_position( y: c_int, ) { // XXX check error return value - let hints = xlib::XAllocSizeHints(); - let mut supplied: c_long = 0; - xlib::XGetWMNormalHints(display.xdisplay(), surface.xid(), hints, &mut supplied); - (*hints).x = x; - (*hints).y = y; - xlib::XSetWMNormalHints(display.xdisplay(), surface.xid(), hints); - xlib::XFree(hints as *mut _); + xlib::XMoveWindow(display.xdisplay(), surface.xid(), x, y); }