X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fpopup.c;h=3844089c2e8ef5995c8fb60e4352d7b4030e3a0a;hb=a51d2082bd28baa11e28441bc0fb4016150618df;hp=592c5ee0514a163e7f18260f55a02a521dfecc26;hpb=4be58bf13719fd22cb08a7f016eaf757640ccd05;p=chaz%2Fopenbox diff --git a/openbox/popup.c b/openbox/popup.c index 592c5ee0..3844089c 100644 --- a/openbox/popup.c +++ b/openbox/popup.c @@ -1,3 +1,21 @@ +/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- + + popup.c for the Openbox window manager + Copyright (c) 2003 Ben Jansens + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + See the COPYING file for a copy of the GNU General Public License. +*/ + #include "popup.h" #include "openbox.h" @@ -263,11 +281,6 @@ static void pager_popup_draw_icon(gint px, gint py, gint w, gint h, / screen_desktop_layout.rows; /* make them squares */ eachw = eachh = MIN(eachw, eachh); - g_message("dif %d %d %d %d ", - (screen_desktop_layout.columns * (eachw + ob_rr_theme->bwidth) + - ob_rr_theme->bwidth), w, - (screen_desktop_layout.rows * (eachh + ob_rr_theme->bwidth) + - ob_rr_theme->bwidth), h); /* center */ px += (w - (screen_desktop_layout.columns * (eachw + ob_rr_theme->bwidth) + @@ -275,8 +288,6 @@ static void pager_popup_draw_icon(gint px, gint py, gint w, gint h, py += (h - (screen_desktop_layout.rows * (eachh + ob_rr_theme->bwidth) + ob_rr_theme->bwidth)) / 2; - g_message("%d %d %d %d", px, py, eachw, eachh); - if (eachw <= 0 || eachh <= 0) return; @@ -336,8 +347,6 @@ static void pager_popup_draw_icon(gint px, gint py, gint w, gint h, break; } - g_message("%d %d %d", n, horz_inc, vert_inc); - rown = n; i = 0; for (r = 0, y = 0; r < screen_desktop_layout.rows; @@ -348,8 +357,6 @@ static void pager_popup_draw_icon(gint px, gint py, gint w, gint h, { RrAppearance *a; - g_message("i %d n %d", i, n); - if (i >= self->desks) break; @@ -395,6 +402,7 @@ void pager_popup_free(ObPagerPopup *self) for (i = 0; i < self->desks; ++i) XDestroyWindow(ob_display, self->wins[i]); + g_free(self->wins); RrAppearanceFree(self->hilight); RrAppearanceFree(self->unhilight); popup_free(self->popup);