window: Remove meta_window_set_gravity as "public" API

This commit is contained in:
Jasper St. Pierre 2014-03-18 10:31:17 -04:00
parent 7504f16e59
commit 5270c469a3
2 changed files with 20 additions and 23 deletions

View File

@ -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);

View File

@ -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,