diff options
author | Bob Loosen <bob.loosen@gmail.com> | 2013-05-08 21:08:46 +0200 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2013-05-08 21:17:54 +0200 |
commit | 22d6df280117fba8eb7584bca631d73a7ba359e2 (patch) | |
tree | aac922b3479b889c6f066093521380857b72ba5d /settings-dialogs | |
parent | 703bd36d23974c195ff0877c13b5bcfc2d56623c (diff) | |
download | xfwm4-22d6df280117fba8eb7584bca631d73a7ba359e2.tar.gz |
Add Vsync support for the compositor (bug #8898).
Diffstat (limited to 'settings-dialogs')
-rw-r--r-- | settings-dialogs/tweaks-settings.c | 9 | ||||
-rw-r--r-- | settings-dialogs/xfwm4-tweaks-dialog.glade | 40 |
2 files changed, 37 insertions, 12 deletions
diff --git a/settings-dialogs/tweaks-settings.c b/settings-dialogs/tweaks-settings.c index f60b60669..0b6a7eb9a 100644 --- a/settings-dialogs/tweaks-settings.c +++ b/settings-dialogs/tweaks-settings.c @@ -205,6 +205,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 *sync_to_vblank_check = GTK_WIDGET (gtk_builder_get_object (builder, "sync_to_vblank_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")); @@ -405,6 +406,14 @@ wm_tweaks_dialog_configure_widgets (GtkBuilder *builder) "/general/show_dock_shadow", G_TYPE_BOOLEAN, (GObject *)show_dock_shadow_check, "active"); +#ifdef HAVE_LIBDRM + xfconf_g_property_bind (xfwm4_channel, + "/general/sync_to_vblank", + G_TYPE_BOOLEAN, + (GObject *)sync_to_vblank_check, "active"); +#else + gtk_widget_hide (sync_to_vblank_check); +#endif xfconf_g_property_bind (xfwm4_channel, "/general/frame_opacity", diff --git a/settings-dialogs/xfwm4-tweaks-dialog.glade b/settings-dialogs/xfwm4-tweaks-dialog.glade index e9996afd0..d026dfd3f 100644 --- a/settings-dialogs/xfwm4-tweaks-dialog.glade +++ b/settings-dialogs/xfwm4-tweaks-dialog.glade @@ -840,8 +840,8 @@ when switching via keyboard shortcuts</property> </packing> </child> <child> - <object class="GtkCheckButton" id="show_frame_shadow_check"> - <property name="label" translatable="yes">Show shadows under _regular windows</property> + <object class="GtkCheckButton" id="sync_to_vblank_check"> + <property name="label" translatable="yes">Synchronize drawing to the _vertical blank</property> <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">True</property> @@ -888,6 +888,22 @@ when switching via keyboard shortcuts</property> </packing> </child> <child> + <object class="GtkCheckButton" id="show_frame_shadow_check"> + <property name="label" translatable="yes">Show shadows under _regular windows</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">4</property> + </packing> + </child> + <child> <object class="GtkLabel" id="label12"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -899,7 +915,7 @@ when switching via keyboard shortcuts</property> <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">4</property> + <property name="position">5</property> </packing> </child> <child> @@ -959,7 +975,7 @@ when switching via keyboard shortcuts</property> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">5</property> + <property name="position">6</property> </packing> </child> <child> @@ -974,7 +990,7 @@ when switching via keyboard shortcuts</property> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">6</property> + <property name="position">7</property> </packing> </child> <child> @@ -1034,7 +1050,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> @@ -1049,7 +1065,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> @@ -1109,7 +1125,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> @@ -1124,7 +1140,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> @@ -1184,7 +1200,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> @@ -1199,7 +1215,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> @@ -1259,7 +1275,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> </object> |