[Xfce4-commits] [xfce/xfwm4] 02/02: Fix a couple build warnings
noreply at xfce.org
noreply at xfce.org
Sat Mar 28 15:05:38 CET 2015
This is an automated email from the git hooks/post-receive script.
olivier pushed a commit to branch master
in repository xfce/xfwm4.
commit badd1963c4e3ebc7b720074749c8a920b25acf3c
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Sat Mar 28 10:10:37 2015 +0300
Fix a couple build warnings
This just fixes a couple build warnings when compiling xfpm from
git master with gcc. compositorHandleRandrNotify isn't called
anymore so drop the dead code it was removed in: commit 8fbff6 but
got added with the Merge branch 'scale-cursor' commit, bc0355.
---
src/client.c | 1 -
src/compositor.c | 22 +---------------------
2 files changed, 1 insertion(+), 22 deletions(-)
diff --git a/src/client.c b/src/client.c
index e3054f5..5eb3a05 100644
--- a/src/client.c
+++ b/src/client.c
@@ -3414,7 +3414,6 @@ clientTile (Client *c, gint cx, gint cy, tilePositionType tile, gboolean send_co
XWindowChanges wc;
GdkRectangle rect;
unsigned long old_flags;
- int mode;
g_return_val_if_fail (c != NULL, FALSE);
diff --git a/src/compositor.c b/src/compositor.c
index ffa9c86..ef0a882 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1353,7 +1353,7 @@ vblank_init(ScreenInfo *screen_info)
version = epoxy_glx_version (myScreenGetXDisplay (screen_info), screen_info->screen);
if (version < 13)
{
- g_warning ("GLX version %d is too old, vsync disabled.");
+ g_warning ("GLX version %d is too old, vsync disabled.", version);
return FALSE;
}
@@ -1436,7 +1436,6 @@ static void
wait_vblank (ScreenInfo *screen_info)
{
guint32 current_count;
- GLXDrawable drawable;
if (screen_info->has_glx_sync_control)
{
@@ -2916,25 +2915,6 @@ compositorHandleCursorNotify (DisplayInfo *display_info, XFixesCursorNotifyEvent
}
}
-#ifdef HAVE_RANDR
-static void
-compositorHandleRandrNotify (DisplayInfo *display_info, XRRScreenChangeNotifyEvent *ev)
-{
- ScreenInfo *screen_info;
-
- g_return_if_fail (display_info != NULL);
- g_return_if_fail (ev != NULL);
- TRACE ("entering compositorHandleRandrNotify for 0x%lx", ev->window);
-
- screen_info = myDisplayGetScreenFromRoot (display_info, ev->window);
- if (screen_info)
- {
- get_refresh_rate (screen_info);
- }
- /* No need for RRUpdateConfiguration() here, leave that to gtk+ */
-}
-#endif /* HAVE_RANDR */
-
static gboolean
compositorCheckCMSelection (ScreenInfo *screen_info)
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list