mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
Move the resizepopup to a compositor-side feature
This is the last big feature that requires X11 on Wayland, so let's just trash it and make GNOME Shell reimplement it.
This commit is contained in:
@ -478,6 +478,12 @@ gboolean meta_display_show_restart_message (MetaDisplay *display,
|
||||
const char *message);
|
||||
gboolean meta_display_request_restart (MetaDisplay *display);
|
||||
|
||||
gboolean meta_display_show_resize_popup (MetaDisplay *display,
|
||||
gboolean show,
|
||||
MetaRectangle *rect,
|
||||
int display_w,
|
||||
int display_h);
|
||||
|
||||
void meta_restart_init (void);
|
||||
void meta_restart_finish (void);
|
||||
|
||||
|
@ -122,6 +122,7 @@ enum
|
||||
GRAB_OP_END,
|
||||
SHOW_RESTART_MESSAGE,
|
||||
RESTART,
|
||||
SHOW_RESIZE_POPUP,
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
@ -329,6 +330,16 @@ meta_display_class_init (MetaDisplayClass *klass)
|
||||
NULL, NULL,
|
||||
G_TYPE_BOOLEAN, 0);
|
||||
|
||||
display_signals[SHOW_RESIZE_POPUP] =
|
||||
g_signal_new ("show-resize-popup",
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
0,
|
||||
g_signal_accumulator_true_handled,
|
||||
NULL, NULL,
|
||||
G_TYPE_BOOLEAN, 4,
|
||||
G_TYPE_BOOLEAN, META_TYPE_RECTANGLE, G_TYPE_INT, G_TYPE_INT);
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_FOCUS_WINDOW,
|
||||
g_param_spec_object ("focus-window",
|
||||
@ -3018,6 +3029,22 @@ meta_display_request_restart (MetaDisplay *display)
|
||||
return result;
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_display_show_resize_popup (MetaDisplay *display,
|
||||
gboolean show,
|
||||
MetaRectangle *rect,
|
||||
int display_w,
|
||||
int display_h)
|
||||
{
|
||||
gboolean result = FALSE;
|
||||
|
||||
g_signal_emit (display,
|
||||
display_signals[SHOW_RESIZE_POPUP], 0,
|
||||
show, rect, display_w, display_h, &result);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_display_is_pointer_emulating_sequence:
|
||||
* @display: the display
|
||||
|
Reference in New Issue
Block a user