window: Move set_frame_xwindow to WindowX11

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3603>
This commit is contained in:
Bilal Elmoussaoui 2024-02-21 15:58:49 +01:00
parent 3cc44b1f04
commit 2834780cbe
4 changed files with 7 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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