From 1ec4fb6b6cb6d4b93dddc40c59abf62552445ad2 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Thu, 22 Jan 2015 09:45:35 +0100 Subject: Cosmetic --- src/Ewmh.cc | 14 ++------------ src/Window.cc | 20 ++++---------------- src/Window.hh | 1 + src/fluxbox.cc | 22 +++++----------------- 4 files changed, 12 insertions(+), 45 deletions(-) diff --git a/src/Ewmh.cc b/src/Ewmh.cc index e7ba9a9..b6793e0 100644 --- a/src/Ewmh.cc +++ b/src/Ewmh.cc @@ -44,18 +44,8 @@ #include #include #include - -#ifdef HAVE_CSTRING - #include -#else - #include -#endif - -#ifdef HAVE_CSTDLIB - #include -#else - #include -#endif +#include +#include using std::cerr; diff --git a/src/Window.cc b/src/Window.cc index cb0689e..daea663 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -62,22 +62,10 @@ #include #include -#ifdef HAVE_CSTRING - #include -#else - #include -#endif -#ifdef HAVE_CSTDIO - #include -#else - #include -#endif +#include +#include #include -#ifdef HAVE_CASSERT - #include -#else - #include -#endif +#include #include #include @@ -258,7 +246,7 @@ private: // Tests whether a point is on an edge or the corner. struct TestCornerHelper { int corner_size_px, corner_size_pc; - inline bool operator()(int xy, int wh) + bool operator()(int xy, int wh) { /* The % checking must be right: 0% must fail, 100% must succeed. */ return xy < corner_size_px || 100 * xy < corner_size_pc * wh; diff --git a/src/Window.hh b/src/Window.hh index b7975f5..da126ec 100644 --- a/src/Window.hh +++ b/src/Window.hh @@ -42,6 +42,7 @@ #include #include #include +#include class WinClient; class FbWinFrameTheme; diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 5771cb3..ab05f56 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -81,21 +81,9 @@ // system headers -#ifdef HAVE_CSTDIO - #include -#else - #include -#endif -#ifdef HAVE_CSTDLIB - #include -#else - #include -#endif -#ifdef HAVE_CSTRING - #include -#else - #include -#endif +#include +#include +#include #ifdef HAVE_UNISTD_H #include @@ -1302,8 +1290,8 @@ void Fluxbox::revertFocus() { return; // already handled Window win; - int blah; - XGetInputFocus(display(), &win, &blah); + int ignore; + XGetInputFocus(display(), &win, &ignore); // we only want to revert focus if it's left dangling, as some other // application may have set the focus to an unmanaged window -- cgit v0.11.2