[Xfce4-commits] [xfce/xfce4-session] 05/06: replaced GList of windows with single window (not required any more) (triggered by previous commit a99008c8dbddc038778c8c7e1e080f42c034c3a2)
noreply at xfce.org
noreply at xfce.org
Sat Apr 6 23:38:30 CEST 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-session.
commit d39c6ef8ffa43af705cfc0656fa68a2d544401f2
Author: Alexander Schwinn <alexxcons at xfce.org>
Date: Sat Mar 30 23:40:15 2019 +0100
replaced GList of windows with single window (not required any more)
(triggered by previous commit a99008c8dbddc038778c8c7e1e080f42c034c3a2)
---
xfce4-session/xfsm-fadeout.c | 23 +++--------------------
1 file changed, 3 insertions(+), 20 deletions(-)
diff --git a/xfce4-session/xfsm-fadeout.c b/xfce4-session/xfsm-fadeout.c
index fe611de..3320383 100644
--- a/xfce4-session/xfsm-fadeout.c
+++ b/xfce4-session/xfsm-fadeout.c
@@ -39,7 +39,7 @@ struct _XfsmFadeout
{
#ifdef GDK_WINDOWING_X11
Display *xdisplay;
- GSList *xwindows;
+ Window *xwindow;
#endif
};
@@ -149,17 +149,13 @@ xfsm_fadeout_new (GdkDisplay *display)
{
XfsmFadeout *fadeout;
GdkScreen *screen;
-#ifdef GDK_WINDOWING_X11
- Window xwindow;
-#endif
fadeout = g_slice_new0 (XfsmFadeout);
#ifdef GDK_WINDOWING_X11
fadeout->xdisplay = gdk_x11_display_get_xdisplay (display);
screen = gdk_display_get_default_screen (display);
- xwindow = xfsm_x11_fadeout_new_window (display, screen);
- fadeout->xwindows = g_slist_prepend (fadeout->xwindows, GINT_TO_POINTER (xwindow));
+ fadeout->xwindow = GINT_TO_POINTER (xfsm_x11_fadeout_new_window (display, screen));
#endif
return fadeout;
@@ -167,25 +163,12 @@ xfsm_fadeout_new (GdkDisplay *display)
-#ifdef GDK_WINDOWING_X11
-static void
-xfsm_fadeout_destroy_foreach (gpointer data, gpointer user_data)
-{
- XfsmFadeout *fadeout = user_data;
- Window xwindow = GPOINTER_TO_INT (data);
-
- XDestroyWindow (fadeout->xdisplay, xwindow);
-}
-#endif
-
-
-
void
xfsm_fadeout_destroy (XfsmFadeout *fadeout)
{
#ifdef GDK_WINDOWING_X11
gdk_error_trap_push ();
- g_slist_foreach (fadeout->xwindows, xfsm_fadeout_destroy_foreach, fadeout);
+ XDestroyWindow (fadeout->xdisplay, GPOINTER_TO_INT (fadeout->xwindow));
gdk_flush ();
gdk_error_trap_pop_ignored ();
#endif
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list