mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05:00
window: Move set_frame_xwindow to WindowX11
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3603>
This commit is contained in:
parent
3cc44b1f04
commit
2834780cbe
@ -31,7 +31,7 @@
|
||||
#include "core/keybindings-private.h"
|
||||
#include "mtk/mtk-x11.h"
|
||||
#include "x11/meta-x11-display-private.h"
|
||||
#include "x11/window-x11.h"
|
||||
#include "x11/window-x11-private.h"
|
||||
#include "x11/window-props.h"
|
||||
|
||||
#include <X11/Xatom.h>
|
||||
@ -59,8 +59,8 @@ meta_window_ensure_frame (MetaWindow *window)
|
||||
}
|
||||
|
||||
void
|
||||
meta_window_set_frame_xwindow (MetaWindow *window,
|
||||
Window xframe)
|
||||
meta_window_x11_set_frame_xwindow (MetaWindow *window,
|
||||
Window xframe)
|
||||
{
|
||||
MetaX11Display *x11_display = window->display->x11_display;
|
||||
XSetWindowAttributes attrs;
|
||||
|
@ -867,9 +867,6 @@ gboolean meta_window_calculate_bounds (MetaWindow *window,
|
||||
int *bounds_width,
|
||||
int *bounds_height);
|
||||
|
||||
void meta_window_set_frame_xwindow (MetaWindow *window,
|
||||
Window xframe);
|
||||
|
||||
void meta_window_maybe_apply_size_hints (MetaWindow *window,
|
||||
MtkRectangle *target_rect);
|
||||
|
||||
|
@ -1485,8 +1485,8 @@ handle_other_xevent (MetaX11Display *x11_display,
|
||||
|
||||
if (window != NULL && window->decorated && !window->frame)
|
||||
{
|
||||
meta_window_set_frame_xwindow (window,
|
||||
event->xmaprequest.window);
|
||||
meta_window_x11_set_frame_xwindow (window,
|
||||
event->xmaprequest.window);
|
||||
meta_window_x11_initialize_state (window);
|
||||
meta_window_update_visibility (window);
|
||||
}
|
||||
|
@ -130,4 +130,6 @@ void meta_window_x11_shutdown_group (MetaWindow *window);
|
||||
META_EXPORT
|
||||
void meta_window_x11_group_leader_changed (MetaWindow *window);
|
||||
|
||||
void meta_window_x11_set_frame_xwindow (MetaWindow *window,
|
||||
Window xframe);
|
||||
G_END_DECLS
|
||||
|
Loading…
Reference in New Issue
Block a user