summaryrefslogtreecommitdiff
path: root/settings-dialogs
diff options
context:
space:
mode:
authorx4e <x4e_x4e@protonmail.com>2020-12-12 17:31:50 +0000
committerOlivier Fourdan <fourdan@xfce.org>2020-12-15 19:55:00 +0100
commit841fcf27ea7d83fcfdafa28e4ee759ce6f5fc87b (patch)
tree17542bf86f034d1a054b30b33769cf6bebebb567 /settings-dialogs
parent78571293bc911db680037deba17b0c6c6fba46f0 (diff)
downloadxfwm4-841fcf27ea7d83fcfdafa28e4ee759ce6f5fc87b.tar.gz
Add `cycle_minimized` option
This option allows minimized windows to be cycled in their MRU (Most Recently Used) order along side non minimized windows. With this option disabled the old behaviour will continue, where minimized windows are always at the end of the MRU cycle order. This option is disabled by default. The code in this commit was provided by @evandrocoan . Closes: https://gitlab.xfce.org/xfce/xfwm4/-/issues/438
Diffstat (limited to 'settings-dialogs')
-rw-r--r--settings-dialogs/tweaks-settings.c5
-rw-r--r--settings-dialogs/xfwm4-tweaks-dialog.glade26
2 files changed, 26 insertions, 5 deletions
diff --git a/settings-dialogs/tweaks-settings.c b/settings-dialogs/tweaks-settings.c
index 259a5ea70..3291201d8 100644
--- a/settings-dialogs/tweaks-settings.c
+++ b/settings-dialogs/tweaks-settings.c
@@ -172,6 +172,7 @@ wm_tweaks_dialog_configure_widgets (GtkBuilder *builder)
GtkWidget *cycle_workspaces_check = GTK_WIDGET (gtk_builder_get_object (builder, "cycle_workspaces_check"));
GtkWidget *cycle_hidden_check = GTK_WIDGET (gtk_builder_get_object (builder, "cycle_hidden_check"));
GtkWidget *cycle_minimum_check = GTK_WIDGET (gtk_builder_get_object (builder, "cycle_minimum_check"));
+ GtkWidget *cycle_minimized_check = GTK_WIDGET (gtk_builder_get_object (builder, "cycle_minimized_check"));
GtkWidget *cycle_draw_frame = GTK_WIDGET (gtk_builder_get_object (builder, "cycle_draw_frame"));
GtkWidget *cycle_raise = GTK_WIDGET (gtk_builder_get_object (builder, "cycle_raise"));
GtkWidget *cycle_tabwin_mode = GTK_WIDGET (gtk_builder_get_object (builder, "cycle_tabwin_mode"));
@@ -309,6 +310,10 @@ wm_tweaks_dialog_configure_widgets (GtkBuilder *builder)
G_TYPE_BOOLEAN,
(GObject *)cycle_minimum_check, "active");
xfconf_g_property_bind (xfwm4_channel,
+ "/general/cycle_minimized",
+ G_TYPE_BOOLEAN,
+ (GObject *)cycle_minimized_check, "active");
+ xfconf_g_property_bind (xfwm4_channel,
"/general/cycle_hidden",
G_TYPE_BOOLEAN,
(GObject *)cycle_hidden_check, "active");
diff --git a/settings-dialogs/xfwm4-tweaks-dialog.glade b/settings-dialogs/xfwm4-tweaks-dialog.glade
index 10b0fff81..9fe527dec 100644
--- a/settings-dialogs/xfwm4-tweaks-dialog.glade
+++ b/settings-dialogs/xfwm4-tweaks-dialog.glade
@@ -138,6 +138,22 @@ or "skip taskbar" properties set</property>
</packing>
</child>
<child>
+ <object class="GtkCheckButton" id="cycle_minimized_check">
+ <property name="label" translatable="no">Cycle _through minimized windows in most recently used order</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">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
<object class="GtkCheckButton" id="cycle_hidden_check">
<property name="label" translatable="yes">_Include hidden (i.e. iconified) windows</property>
<property name="use_action_appearance">False</property>
@@ -150,7 +166,7 @@ or "skip taskbar" properties set</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">1</property>
+ <property name="position">2</property>
</packing>
</child>
<child>
@@ -166,7 +182,7 @@ or "skip taskbar" properties set</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">2</property>
+ <property name="position">3</property>
</packing>
</child>
<child>
@@ -182,7 +198,7 @@ or "skip taskbar" properties set</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">3</property>
+ <property name="position">4</property>
</packing>
</child>
<child>
@@ -198,7 +214,7 @@ or "skip taskbar" properties set</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">4</property>
+ <property name="position">5</property>
</packing>
</child>
<child>
@@ -214,7 +230,7 @@ or "skip taskbar" properties set</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">5</property>
+ <property name="position">6</property>
</packing>
</child>
</object>