mirror of
https://github.com/brl/mutter.git
synced 2024-11-11 00:26:40 -05:00
window: Remove meta_window_set_gravity as "public" API
This commit is contained in:
parent
7504f16e59
commit
5270c469a3
@ -624,9 +624,6 @@ void meta_window_show_menu (MetaWindow *window,
|
||||
int button,
|
||||
guint32 timestamp);
|
||||
|
||||
void meta_window_set_gravity (MetaWindow *window,
|
||||
int gravity);
|
||||
|
||||
#ifdef HAVE_XSYNC
|
||||
void meta_window_update_sync_request_counter (MetaWindow *window,
|
||||
gint64 new_counter_value);
|
||||
|
@ -4431,6 +4431,26 @@ meta_window_update_monitor (MetaWindow *window)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
meta_window_set_gravity (MetaWindow *window,
|
||||
int gravity)
|
||||
{
|
||||
XSetWindowAttributes attrs;
|
||||
|
||||
meta_verbose ("Setting gravity of %s to %d\n", window->desc, gravity);
|
||||
|
||||
attrs.win_gravity = gravity;
|
||||
|
||||
meta_error_trap_push (window->display);
|
||||
|
||||
XChangeWindowAttributes (window->display->xdisplay,
|
||||
window->xwindow,
|
||||
CWWinGravity,
|
||||
&attrs);
|
||||
|
||||
meta_error_trap_pop (window->display);
|
||||
}
|
||||
|
||||
static void
|
||||
meta_window_move_resize_internal (MetaWindow *window,
|
||||
MetaMoveResizeFlags flags,
|
||||
@ -8536,26 +8556,6 @@ meta_window_handle_mouse_grab_op_event (MetaWindow *window,
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
meta_window_set_gravity (MetaWindow *window,
|
||||
int gravity)
|
||||
{
|
||||
XSetWindowAttributes attrs;
|
||||
|
||||
meta_verbose ("Setting gravity of %s to %d\n", window->desc, gravity);
|
||||
|
||||
attrs.win_gravity = gravity;
|
||||
|
||||
meta_error_trap_push (window->display);
|
||||
|
||||
XChangeWindowAttributes (window->display->xdisplay,
|
||||
window->xwindow,
|
||||
CWWinGravity,
|
||||
&attrs);
|
||||
|
||||
meta_error_trap_pop (window->display);
|
||||
}
|
||||
|
||||
static void
|
||||
get_work_area_monitor (MetaWindow *window,
|
||||
MetaRectangle *area,
|
||||
|
Loading…
Reference in New Issue
Block a user