Relayout on monitor layout changes
Currently we only relayout when the screen size changes, this gets the cases where a monitor gets added/removed but not when the primary monitor changes. We need to relayout on all monitor layout changes. Remove ShellGlobal::screen-size-changed signal as it is no longer used, Gdk is used to track changes now. A ShellGlobal::gdk-screen property is added for this purpose. https://bugzilla.gnome.org/show_bug.cgi?id=620377
This commit is contained in:
@ -25,8 +25,6 @@ typedef struct _ShellGlobalClass ShellGlobalClass;
|
||||
struct _ShellGlobalClass
|
||||
{
|
||||
GObjectClass parent_class;
|
||||
|
||||
void (*screen_size_changed) (ShellGlobal *global);
|
||||
};
|
||||
|
||||
GType shell_global_get_type (void) G_GNUC_CONST;
|
||||
@ -40,6 +38,8 @@ ShellGlobal *shell_global_get (void);
|
||||
|
||||
MetaScreen *shell_global_get_screen (ShellGlobal *global);
|
||||
|
||||
GdkScreen *shell_global_get_gdk_screen (ShellGlobal *global);
|
||||
|
||||
gboolean shell_global_add_extension_importer (ShellGlobal *global,
|
||||
const char *target_object_script,
|
||||
const char *target_property,
|
||||
|
Reference in New Issue
Block a user