aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2013-04-29 00:56:47 +0000
committerokan2013-04-29 00:56:47 +0000
commit57691160415590c63cf83db6c021e377df9f1de4 (patch)
treea7bbc6c710858c08b445ad0e571fbe40d9dfef37 /xevents.c
parent1474b1efa279e0271abd1fba7efd80869ac96175 (diff)
downloadcwm-57691160415590c63cf83db6c021e377df9f1de4.tar.gz
use an int in screen_init and avoid needing to cast for screen number (which).
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xevents.c b/xevents.c
index ce73372..5118b90 100644
--- a/xevents.c
+++ b/xevents.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xevents.c,v 1.71 2013/04/05 17:07:25 okan Exp $
+ * $OpenBSD: xevents.c,v 1.72 2013/04/29 00:56:48 okan Exp $
*/
/*
@@ -362,7 +362,7 @@ xev_handle_randr(XEvent *ee)
i = XRRRootToScreen(X_Dpy, rev->root);
TAILQ_FOREACH(sc, &Screenq, entry) {
- if (sc->which == (u_int)i) {
+ if (sc->which == i) {
XRRUpdateConfiguration(ee);
screen_update_geometry(sc);
}