diff options
author | Olivier Fourdan <fourdan@xfce.org> | 2020-10-31 11:42:45 +0100 |
---|---|---|
committer | Olivier Fourdan <fourdan@xfce.org> | 2020-10-31 22:03:07 +0100 |
commit | 39eb0435df51d30a88c01677a85ffe90256ad819 (patch) | |
tree | fbdc8fee5ae8fdb06a3973b2a44983ec9e731530 /settings-dialogs | |
parent | e5502ad4aff7f7e10e4aeecc21927dbdd563ed66 (diff) | |
download | xfwm4-39eb0435df51d30a88c01677a85ffe90256ad819.tar.gz |
compositor: Make cursor zoom optional
Xfwm4 4.14 made the cursor zoom along with the desktop. While this
sounds like a sensible thing to do, it's not necessarily an improvement
for accessibility, because an enlarged cursor also hides what's being
zoomed underneath.
Add a new option to control whether the pointer is zoomed along with the
rest of the desktop.
Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
Closes: https://gitlab.xfce.org/xfce/xfwm4/-/issues/439
Diffstat (limited to 'settings-dialogs')
-rw-r--r-- | settings-dialogs/tweaks-settings.c | 5 | ||||
-rw-r--r-- | settings-dialogs/xfwm4-tweaks-dialog.glade | 34 |
2 files changed, 30 insertions, 9 deletions
diff --git a/settings-dialogs/tweaks-settings.c b/settings-dialogs/tweaks-settings.c index d5f711be6..a8efafd09 100644 --- a/settings-dialogs/tweaks-settings.c +++ b/settings-dialogs/tweaks-settings.c @@ -215,6 +215,7 @@ wm_tweaks_dialog_configure_widgets (GtkBuilder *builder) GtkWidget *show_frame_shadow_check = GTK_WIDGET (gtk_builder_get_object (builder, "show_frame_shadow_check")); GtkWidget *show_popup_shadow_check = GTK_WIDGET (gtk_builder_get_object (builder, "show_popup_shadow_check")); GtkWidget *show_dock_shadow_check = GTK_WIDGET (gtk_builder_get_object (builder, "show_dock_shadow_check")); + GtkWidget *zoom_pointer_check = GTK_WIDGET (gtk_builder_get_object (builder, "zoom_pointer_check")); GtkWidget *frame_opacity_scale = GTK_WIDGET (gtk_builder_get_object (builder, "frame_opacity_scale")); GtkWidget *inactive_opacity_scale = GTK_WIDGET (gtk_builder_get_object (builder, "inactive_opacity_scale")); @@ -425,6 +426,10 @@ wm_tweaks_dialog_configure_widgets (GtkBuilder *builder) G_TYPE_BOOLEAN, (GObject *)show_dock_shadow_check, "active"); xfconf_g_property_bind (xfwm4_channel, + "/general/zoom_pointer", + G_TYPE_BOOLEAN, + (GObject *)zoom_pointer_check, "active"); + xfconf_g_property_bind (xfwm4_channel, "/general/frame_opacity", G_TYPE_INT, (GObject *) range_debouncer_bind (GTK_RANGE (frame_opacity_scale)), "value"); diff --git a/settings-dialogs/xfwm4-tweaks-dialog.glade b/settings-dialogs/xfwm4-tweaks-dialog.glade index a9273a75e..ed54d7ad6 100644 --- a/settings-dialogs/xfwm4-tweaks-dialog.glade +++ b/settings-dialogs/xfwm4-tweaks-dialog.glade @@ -978,6 +978,22 @@ when switching via keyboard shortcuts</property> </packing> </child> <child> + <object class="GtkCheckButton" id="zoom_pointer_check"> + <property name="label" translatable="yes">Zoom pointer along with the desktop</property> + <property name="use_action_appearance">False</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">6</property> + </packing> + </child> + <child> <object class="GtkLabel" id="label12"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -989,7 +1005,7 @@ when switching via keyboard shortcuts</property> <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">6</property> + <property name="position">7</property> </packing> </child> <child> @@ -1050,7 +1066,7 @@ when switching via keyboard shortcuts</property> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">7</property> + <property name="position">8</property> </packing> </child> <child> @@ -1065,7 +1081,7 @@ when switching via keyboard shortcuts</property> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">8</property> + <property name="position">9</property> </packing> </child> <child> @@ -1126,7 +1142,7 @@ when switching via keyboard shortcuts</property> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">9</property> + <property name="position">10</property> </packing> </child> <child> @@ -1141,7 +1157,7 @@ when switching via keyboard shortcuts</property> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">10</property> + <property name="position">11</property> </packing> </child> <child> @@ -1202,7 +1218,7 @@ when switching via keyboard shortcuts</property> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">11</property> + <property name="position">12</property> </packing> </child> <child> @@ -1217,7 +1233,7 @@ when switching via keyboard shortcuts</property> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">12</property> + <property name="position">13</property> </packing> </child> <child> @@ -1278,7 +1294,7 @@ when switching via keyboard shortcuts</property> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">13</property> + <property name="position">14</property> </packing> </child> <child> @@ -1293,7 +1309,7 @@ when switching via keyboard shortcuts</property> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">14</property> + <property name="position">15</property> </packing> </child> <child> |