From 35fdbbae7a9571673b2064f44b576c0f5f23dc95 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan <fourdan.olivier@wanadoo.fr> Date: Fri, 20 Jan 2006 22:45:49 +0000 Subject: [PATCH] Fix compositing manager not being detected, repaint screen upon shadow changes. (Old svn revision: 19514) --- mcs-plugin/wmtweak_plugin.c | 6 +++--- src/settings.c | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/mcs-plugin/wmtweak_plugin.c b/mcs-plugin/wmtweak_plugin.c index 3cc2018b3..e1aa8dd0e 100644 --- a/mcs-plugin/wmtweak_plugin.c +++ b/mcs-plugin/wmtweak_plugin.c @@ -247,7 +247,7 @@ cb_dialog_response (GtkWidget * dialog, gint response_id) static Itf * create_dialog (McsPlugin * mcs_plugin) { - static GdkAtom composite = (GdkAtom) 0; + static Atom composite = None; Itf *dialog; GtkWidget *dialog_vbox; GtkWidget *dialog_header; @@ -413,10 +413,10 @@ create_dialog (McsPlugin * mcs_plugin) if (G_UNLIKELY (!composite)) { - composite = gdk_atom_intern ("COMPOSITING_MANAGER", FALSE); + composite = XInternAtom (GDK_DISPLAY (), "COMPOSITING_MANAGER", False); } - if (gdk_selection_owner_get (composite)) + if (XGetSelectionOwner (GDK_DISPLAY (), composite)) { vbox1 = gtk_vbox_new (FALSE, BORDER); gtk_widget_show (vbox1); diff --git a/src/settings.c b/src/settings.c index 6cc62ba64..c72ac5ca4 100644 --- a/src/settings.c +++ b/src/settings.c @@ -373,6 +373,7 @@ notify_cb (const char *name, const char *channel_name, McsAction action, McsSett else if (!strcmp (name, "Xfwm/PopupOpacity")) { screen_info->params->popup_opacity = setting->data.v_int; + reloadScreenSettings (screen_info, UPDATE_FRAME); } else if (!strcmp (name, "Xfwm/PlacementRatio")) { @@ -381,10 +382,12 @@ notify_cb (const char *name, const char *channel_name, McsAction action, McsSett else if (!strcmp (name, "Xfwm/ShowFrameShadow")) { screen_info->params->show_frame_shadow = setting->data.v_int; + reloadScreenSettings (screen_info, UPDATE_FRAME); } else if (!strcmp (name, "Xfwm/ShowPopupShadow")) { screen_info->params->show_popup_shadow = setting->data.v_int; + reloadScreenSettings (screen_info, UPDATE_FRAME); } else if (!strcmp (name, "Xfwm/PreventFocusStealing")) { -- GitLab