summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 89ea0e9..1d6e952 100644
--- a/src/core.c
+++ b/src/core.c
@@ -75,3 +75,40 @@ meta_core_queue_frame_resize (Display *xdisplay,
meta_window_queue_move_resize (window);
}
+void
+meta_core_user_move (Display *xdisplay,
+ Window frame_xwindow,
+ int x,
+ int y)
+{
+ MetaDisplay *display;
+ MetaWindow *window;
+
+ display = meta_display_for_x_display (xdisplay);
+ window = meta_display_lookup_x_window (display, frame_xwindow);
+
+ if (window == NULL || window->frame == NULL)
+ meta_bug ("No such frame window 0x%lx!\n", frame_xwindow);
+
+ window->user_has_moved = TRUE;
+ meta_window_move (window, x, y);
+}
+
+void
+meta_core_get_position (Display *xdisplay,
+ Window frame_xwindow,
+ int *x,
+ int *y)
+{
+ MetaDisplay *display;
+ MetaWindow *window;
+
+ display = meta_display_for_x_display (xdisplay);
+ window = meta_display_lookup_x_window (display, frame_xwindow);
+
+ if (window == NULL || window->frame == NULL)
+ meta_bug ("No such frame window 0x%lx!\n", frame_xwindow);
+
+ meta_window_get_position (window, x, y);
+}
+