mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
backends: Add API to switch to predetermined monitor configurations
This will allows us to support the XF86Display key present on some laptops, directly in mutter. This is also known, in evdev, as KEY_SWITCHVIDEOMODE. The common usage for this key is to alternate between a few well known multi-monitor configurations though these aren't officially standardized. As an example, Lenovo documents it as: "Switches the display output location between the computer display and an external monitor." On this patch, we're just introducing the configurations that have been implemented in g-s-d until now, which go a bit beyond the above description. https://bugzilla.gnome.org/show_bug.cgi?id=781906
This commit is contained in:
@ -24,6 +24,15 @@
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
typedef enum
|
||||
{
|
||||
META_MONITOR_SWITCH_CONFIG_ALL_MIRROR,
|
||||
META_MONITOR_SWITCH_CONFIG_ALL_LINEAR,
|
||||
META_MONITOR_SWITCH_CONFIG_EXTERNAL,
|
||||
META_MONITOR_SWITCH_CONFIG_BUILTIN,
|
||||
META_MONITOR_SWITCH_CONFIG_UNKNOWN,
|
||||
} MetaMonitorSwitchConfigType;
|
||||
|
||||
typedef struct _MetaMonitorManagerClass MetaMonitorManagerClass;
|
||||
typedef struct _MetaMonitorManager MetaMonitorManager;
|
||||
|
||||
@ -39,4 +48,11 @@ gint meta_monitor_manager_get_monitor_for_connector (MetaMonitorManager *manager
|
||||
|
||||
gboolean meta_monitor_manager_get_is_builtin_display_on (MetaMonitorManager *manager);
|
||||
|
||||
void meta_monitor_manager_switch_config (MetaMonitorManager *manager,
|
||||
MetaMonitorSwitchConfigType config_type);
|
||||
|
||||
gboolean meta_monitor_manager_can_switch_config (MetaMonitorManager *manager);
|
||||
|
||||
MetaMonitorSwitchConfigType meta_monitor_manager_get_switch_config (MetaMonitorManager *manager);
|
||||
|
||||
#endif /* META_MONITOR_MANAGER_H */
|
||||
|
Reference in New Issue
Block a user