|
|
657d8e |
From 55417eea4294210495eceebd6dd4b832f371f054 Mon Sep 17 00:00:00 2001
|
|
|
657d8e |
From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= <verdre@v0yd.nl>
|
|
|
657d8e |
Date: Sun, 14 Apr 2019 17:15:06 +0200
|
|
|
657d8e |
Subject: [PATCH 1/5] display: Fix a possible bug in
|
|
|
657d8e |
meta_display_sync_wayland_focus
|
|
|
657d8e |
|
|
|
657d8e |
The check for the focus xwindow is called, but not used. Fix that by
|
|
|
657d8e |
renaming the variable to reflect better what it does and actually using
|
|
|
657d8e |
the return value of the check.
|
|
|
657d8e |
|
|
|
657d8e |
This was the original intention of the author in commit
|
|
|
657d8e |
05899596d10918df5359d89baa82e6fedd0ae208 and got broken in commit
|
|
|
657d8e |
8e7e1eeef59c4f74046e6783b6334c1432255c5a.
|
|
|
657d8e |
|
|
|
657d8e |
https://gitlab.gnome.org/GNOME/mutter/merge_requests/535
|
|
|
657d8e |
---
|
|
|
657d8e |
src/core/display.c | 8 ++++----
|
|
|
657d8e |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
657d8e |
|
|
|
657d8e |
diff --git a/src/core/display.c b/src/core/display.c
|
|
|
657d8e |
index 0de99edb2..4c8907f40 100644
|
|
|
657d8e |
--- a/src/core/display.c
|
|
|
657d8e |
+++ b/src/core/display.c
|
|
|
657d8e |
@@ -1208,15 +1208,15 @@ meta_display_sync_wayland_input_focus (MetaDisplay *display)
|
|
|
657d8e |
MetaWindow *focus_window = NULL;
|
|
|
657d8e |
MetaBackend *backend = meta_get_backend ();
|
|
|
657d8e |
MetaStage *stage = META_STAGE (meta_backend_get_stage (backend));
|
|
|
657d8e |
- gboolean is_focus_xwindow = FALSE;
|
|
|
657d8e |
+ gboolean is_no_focus_xwindow = FALSE;
|
|
|
657d8e |
|
|
|
657d8e |
if (display->x11_display)
|
|
|
657d8e |
- meta_x11_display_xwindow_is_a_no_focus_window (display->x11_display,
|
|
|
657d8e |
- display->x11_display->focus_xwindow);
|
|
|
657d8e |
+ is_no_focus_xwindow = meta_x11_display_xwindow_is_a_no_focus_window (display->x11_display,
|
|
|
657d8e |
+ display->x11_display->focus_xwindow);
|
|
|
657d8e |
|
|
|
657d8e |
if (!meta_display_windows_are_interactable (display))
|
|
|
657d8e |
focus_window = NULL;
|
|
|
657d8e |
- else if (is_focus_xwindow)
|
|
|
657d8e |
+ else if (is_no_focus_xwindow)
|
|
|
657d8e |
focus_window = NULL;
|
|
|
657d8e |
else if (display->focus_window && display->focus_window->surface)
|
|
|
657d8e |
focus_window = display->focus_window;
|
|
|
657d8e |
--
|
|
|
657d8e |
2.21.0
|
|
|
657d8e |
|
|
|
657d8e |
|
|
|
657d8e |
From 17cc0a2a21c504b8631bf2ce0f508f611f9b1d3e Mon Sep 17 00:00:00 2001
|
|
|
657d8e |
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
|
657d8e |
Date: Mon, 27 May 2019 20:03:25 +0000
|
|
|
657d8e |
Subject: [PATCH 2/5] renderer-x11-nested: Fix copy-and-paste error
|
|
|
657d8e |
|
|
|
657d8e |
The rounding added in commit c5471e5b8b1 mixed up some variables,
|
|
|
657d8e |
whoops.
|
|
|
657d8e |
|
|
|
657d8e |
https://gitlab.gnome.org/GNOME/mutter/merge_requests/598
|
|
|
657d8e |
---
|
|
|
657d8e |
src/backends/x11/nested/meta-renderer-x11-nested.c | 2 +-
|
|
|
657d8e |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
657d8e |
|
|
|
657d8e |
diff --git a/src/backends/x11/nested/meta-renderer-x11-nested.c b/src/backends/x11/nested/meta-renderer-x11-nested.c
|
|
|
657d8e |
index 71a85a8c2..5000bf357 100644
|
|
|
657d8e |
--- a/src/backends/x11/nested/meta-renderer-x11-nested.c
|
|
|
657d8e |
+++ b/src/backends/x11/nested/meta-renderer-x11-nested.c
|
|
|
657d8e |
@@ -203,7 +203,7 @@ meta_renderer_x11_nested_create_view (MetaRenderer *renderer,
|
|
|
657d8e |
height = logical_monitor->rect.height;
|
|
|
657d8e |
}
|
|
|
657d8e |
width = roundf (width * view_scale);
|
|
|
657d8e |
- height = roundf (width * view_scale);
|
|
|
657d8e |
+ height = roundf (height * view_scale);
|
|
|
657d8e |
|
|
|
657d8e |
fake_onscreen = create_offscreen (cogl_context, width, height);
|
|
|
657d8e |
|
|
|
657d8e |
--
|
|
|
657d8e |
2.21.0
|
|
|
657d8e |
|
|
|
657d8e |
|
|
|
657d8e |
From a58fabbb0e3173359d3374b931815c21ce65032d Mon Sep 17 00:00:00 2001
|
|
|
657d8e |
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
|
657d8e |
Date: Mon, 27 May 2019 19:59:53 +0000
|
|
|
657d8e |
Subject: [PATCH 3/5] input-mapper: Remove unnecessary return value
|
|
|
657d8e |
|
|
|
657d8e |
Since commit ae6d9e35bd, there is a fallback to META_MATCH_IS_BUILTIN,
|
|
|
657d8e |
so the condition for returning FALSE is never met.
|
|
|
657d8e |
|
|
|
657d8e |
https://gitlab.gnome.org/GNOME/mutter/merge_requests/598
|
|
|
657d8e |
---
|
|
|
657d8e |
src/backends/meta-input-mapper.c | 15 +++------------
|
|
|
657d8e |
1 file changed, 3 insertions(+), 12 deletions(-)
|
|
|
657d8e |
|
|
|
657d8e |
diff --git a/src/backends/meta-input-mapper.c b/src/backends/meta-input-mapper.c
|
|
|
657d8e |
index acc9b1618..fc4f3bd59 100644
|
|
|
657d8e |
--- a/src/backends/meta-input-mapper.c
|
|
|
657d8e |
+++ b/src/backends/meta-input-mapper.c
|
|
|
657d8e |
@@ -353,7 +353,7 @@ find_builtin_output (MetaInputMapper *mapper,
|
|
|
657d8e |
return panel != NULL;
|
|
|
657d8e |
}
|
|
|
657d8e |
|
|
|
657d8e |
-static gboolean
|
|
|
657d8e |
+static void
|
|
|
657d8e |
guess_candidates (MetaInputMapper *mapper,
|
|
|
657d8e |
MetaMapperInputInfo *input,
|
|
|
657d8e |
DeviceCandidates *info)
|
|
|
657d8e |
@@ -387,15 +387,7 @@ guess_candidates (MetaInputMapper *mapper,
|
|
|
657d8e |
find_builtin_output (mapper, &info->candidates[META_MATCH_IS_BUILTIN]);
|
|
|
657d8e |
}
|
|
|
657d8e |
|
|
|
657d8e |
- if (best < N_OUTPUT_MATCHES)
|
|
|
657d8e |
- {
|
|
|
657d8e |
- info->best = best;
|
|
|
657d8e |
- return TRUE;
|
|
|
657d8e |
- }
|
|
|
657d8e |
- else
|
|
|
657d8e |
- {
|
|
|
657d8e |
- return FALSE;
|
|
|
657d8e |
- }
|
|
|
657d8e |
+ info->best = best;
|
|
|
657d8e |
}
|
|
|
657d8e |
|
|
|
657d8e |
static void
|
|
|
657d8e |
@@ -408,8 +400,7 @@ mapping_helper_add (MappingHelper *helper,
|
|
|
657d8e |
|
|
|
657d8e |
info.input = input;
|
|
|
657d8e |
|
|
|
657d8e |
- if (!guess_candidates (mapper, input, &info))
|
|
|
657d8e |
- return;
|
|
|
657d8e |
+ guess_candidates (mapper, input, &info;;
|
|
|
657d8e |
|
|
|
657d8e |
for (i = 0; i < helper->device_maps->len; i++)
|
|
|
657d8e |
{
|
|
|
657d8e |
--
|
|
|
657d8e |
2.21.0
|
|
|
657d8e |
|
|
|
657d8e |
|
|
|
657d8e |
From 4eb025cf36a9118cc496ae9143ee2eb510b6228c Mon Sep 17 00:00:00 2001
|
|
|
657d8e |
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
|
657d8e |
Date: Mon, 27 May 2019 20:22:50 +0000
|
|
|
657d8e |
Subject: [PATCH 4/5] workspace-manager: Remove unnecessary assignment
|
|
|
657d8e |
|
|
|
657d8e |
The initialization to -1 is never used, instead the variables are
|
|
|
657d8e |
re-initialized to 0 before the loop that uses them.
|
|
|
657d8e |
|
|
|
657d8e |
https://gitlab.gnome.org/GNOME/mutter/merge_requests/598
|
|
|
657d8e |
---
|
|
|
657d8e |
src/core/meta-workspace-manager.c | 2 --
|
|
|
657d8e |
1 file changed, 2 deletions(-)
|
|
|
657d8e |
|
|
|
657d8e |
diff --git a/src/core/meta-workspace-manager.c b/src/core/meta-workspace-manager.c
|
|
|
657d8e |
index af7344709..8e1f03fe8 100644
|
|
|
657d8e |
--- a/src/core/meta-workspace-manager.c
|
|
|
657d8e |
+++ b/src/core/meta-workspace-manager.c
|
|
|
657d8e |
@@ -600,8 +600,6 @@ meta_workspace_manager_calc_workspace_layout (MetaWorkspaceManager *workspace_ma
|
|
|
657d8e |
|
|
|
657d8e |
grid = g_new (int, grid_area);
|
|
|
657d8e |
|
|
|
657d8e |
- current_row = -1;
|
|
|
657d8e |
- current_col = -1;
|
|
|
657d8e |
i = 0;
|
|
|
657d8e |
|
|
|
657d8e |
switch (workspace_manager->starting_corner)
|
|
|
657d8e |
--
|
|
|
657d8e |
2.21.0
|
|
|
657d8e |
|
|
|
657d8e |
|
|
|
657d8e |
From a854a337ac8807f310ac2c474f9be290089f79f3 Mon Sep 17 00:00:00 2001
|
|
|
657d8e |
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
|
657d8e |
Date: Mon, 27 May 2019 20:43:21 +0000
|
|
|
657d8e |
Subject: [PATCH 5/5] x11-display: Simplify bell handling
|
|
|
657d8e |
|
|
|
657d8e |
Since commit 956ab4bd made libcanberra mandatory, we never use
|
|
|
657d8e |
the system bell for handling the `audible-bell` setting. So
|
|
|
657d8e |
instead of reacting to settings changes with the exact same call
|
|
|
657d8e |
to XkbChangeEnabledControls(), just call it once when initializing.
|
|
|
657d8e |
|
|
|
657d8e |
https://gitlab.gnome.org/GNOME/mutter/merge_requests/598
|
|
|
657d8e |
---
|
|
|
657d8e |
src/x11/meta-x11-display.c | 39 +++++++-------------------------------
|
|
|
657d8e |
1 file changed, 7 insertions(+), 32 deletions(-)
|
|
|
657d8e |
|
|
|
657d8e |
diff --git a/src/x11/meta-x11-display.c b/src/x11/meta-x11-display.c
|
|
|
657d8e |
index 8ce12b994..065ffcdda 100644
|
|
|
657d8e |
--- a/src/x11/meta-x11-display.c
|
|
|
657d8e |
+++ b/src/x11/meta-x11-display.c
|
|
|
657d8e |
@@ -463,6 +463,13 @@ init_x11_bell (MetaX11Display *x11_display)
|
|
|
657d8e |
&mask);
|
|
|
657d8e |
}
|
|
|
657d8e |
}
|
|
|
657d8e |
+
|
|
|
657d8e |
+ /* We are playing sounds using libcanberra support, we handle the
|
|
|
657d8e |
+ * bell whether its an audible bell or a visible bell */
|
|
|
657d8e |
+ XkbChangeEnabledControls (x11_display->xdisplay,
|
|
|
657d8e |
+ XkbUseCoreKbd,
|
|
|
657d8e |
+ XkbAudibleBellMask,
|
|
|
657d8e |
+ 0);
|
|
|
657d8e |
}
|
|
|
657d8e |
|
|
|
657d8e |
/*
|
|
|
657d8e |
@@ -480,32 +487,6 @@ shutdown_x11_bell (MetaX11Display *x11_display)
|
|
|
657d8e |
XkbAudibleBellMask);
|
|
|
657d8e |
}
|
|
|
657d8e |
|
|
|
657d8e |
-/*
|
|
|
657d8e |
- * Turns the bell to audible or visual. This tells X what to do, but
|
|
|
657d8e |
- * not Mutter; you will need to set the "visual bell" pref for that.
|
|
|
657d8e |
- */
|
|
|
657d8e |
-static void
|
|
|
657d8e |
-set_x11_bell_is_audible (MetaX11Display *x11_display,
|
|
|
657d8e |
- gboolean is_audible)
|
|
|
657d8e |
-{
|
|
|
657d8e |
- /* When we are playing sounds using libcanberra support, we handle the
|
|
|
657d8e |
- * bell whether its an audible bell or a visible bell */
|
|
|
657d8e |
- gboolean enable_system_bell = FALSE;
|
|
|
657d8e |
-
|
|
|
657d8e |
- XkbChangeEnabledControls (x11_display->xdisplay,
|
|
|
657d8e |
- XkbUseCoreKbd,
|
|
|
657d8e |
- XkbAudibleBellMask,
|
|
|
657d8e |
- enable_system_bell ? XkbAudibleBellMask : 0);
|
|
|
657d8e |
-}
|
|
|
657d8e |
-
|
|
|
657d8e |
-static void
|
|
|
657d8e |
-on_is_audible_changed (MetaBell *bell,
|
|
|
657d8e |
- gboolean is_audible,
|
|
|
657d8e |
- MetaX11Display *x11_display)
|
|
|
657d8e |
-{
|
|
|
657d8e |
- set_x11_bell_is_audible (x11_display, is_audible);
|
|
|
657d8e |
-}
|
|
|
657d8e |
-
|
|
|
657d8e |
static void
|
|
|
657d8e |
set_desktop_geometry_hint (MetaX11Display *x11_display)
|
|
|
657d8e |
{
|
|
|
657d8e |
@@ -1320,12 +1301,6 @@ meta_x11_display_new (MetaDisplay *display, GError **error)
|
|
|
657d8e |
|
|
|
657d8e |
init_x11_bell (x11_display);
|
|
|
657d8e |
|
|
|
657d8e |
- g_signal_connect_object (display->bell, "is-audible-changed",
|
|
|
657d8e |
- G_CALLBACK (on_is_audible_changed),
|
|
|
657d8e |
- x11_display, 0);
|
|
|
657d8e |
-
|
|
|
657d8e |
- set_x11_bell_is_audible (x11_display, meta_prefs_bell_is_audible ());
|
|
|
657d8e |
-
|
|
|
657d8e |
meta_x11_startup_notification_init (x11_display);
|
|
|
657d8e |
|
|
|
657d8e |
return x11_display;
|
|
|
657d8e |
--
|
|
|
657d8e |
2.21.0
|
|
|
657d8e |
|