summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorCraig Black <blackc@speakeasy.net>2002-08-09 04:27:23 +0000
committerCraig Black <blackc@src.gnome.org>2002-08-09 04:27:23 +0000
commit4fcc9f052ee796271418e459309e63bfe5795125 (patch)
tree91790789300c9d4d05386579d71af187358fc219 /src/window.h
parent8c5369d5223078decaaf7e955101cc7748248f6c (diff)
downloadmetacity-4fcc9f052ee796271418e459309e63bfe5795125.tar.gz
metacity-4fcc9f052ee796271418e459309e63bfe5795125.tar.bz2
Patch to provide extra cues to the user when using window menu move and
2002-08-08 Craig Black <blackc@speakeasy.net> Patch to provide extra cues to the user when using window menu move and resize, #85724. * src/common.h: add new cursors * src/display.c: (grab_op_is_mouse) (meta_display_create_x_cursor), (xcursor_for_op), (meta_display_set_grab_op_cursor), (meta_display_begin_grab_op): The keyboard move and resize grab ops now also use the mouse. Allow the grab cursor to be changed during the grab op. Hold onto the initial grab position in case of reset. * src/display.h: save the initial grab position * src/keybindings.c: (process_keyboard_move_grab), (process_keyboard_resize_grab), (handle_begin_move), (handle_begin_resize): The keyboard move and resize grab ops now also use the mouse. * src/window.c: (meta_window_client_message), (menu_callback), (update_move), (update_resize), (meta_window_handle_mouse_grab_op_event), (warp_pointer), (meta_window_warp_pointer), (meta_window_begin_grab_op), (meta_window_update_resize_grab_op): When moving or resizing a window use the last grab position in computing change increment. Provide support for warping the mouse pointer. * src/window.h: new warp pointer and grab op helper functions
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h
index c7e187f..f10e632 100644
--- a/src/window.h
+++ b/src/window.h
@@ -406,4 +406,14 @@ void meta_window_foreach_transient (MetaWindow *window,
gboolean meta_window_is_ancestor_of_transient (MetaWindow *window,
MetaWindow *transient);
+gboolean meta_window_warp_pointer (MetaWindow *window,
+ MetaGrabOp grab_op);
+
+void meta_window_begin_grab_op (MetaWindow *window,
+ MetaGrabOp op,
+ Time timestamp);
+
+void meta_window_update_resize_grab_op (MetaWindow *window,
+ gboolean update_cursor);
+
#endif