aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormallum <mallum@b067294f-1dea-0310-9683-c47a78595994>2004-12-23 16:06:41 +0000
committermallum <mallum@b067294f-1dea-0310-9683-c47a78595994>2004-12-23 16:06:41 +0000
commit58064d445704715d9a58f3202f86fd8374d20f09 (patch)
tree66e80ea03399f05d991260bf6f27c7076f473779 /src
parent3d8ca97a128a5b793820acea344565df7ce019d5 (diff)
downloadmatchbox-panel-58064d445704715d9a58f3202f86fd8374d20f09.tar.gz
matchbox-panel-58064d445704715d9a58f3202f86fd8374d20f09.tar.bz2
matchbox-panel-58064d445704715d9a58f3202f86fd8374d20f09.zip
tweak positioning for non square applets
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-panel@984 b067294f-1dea-0310-9683-c47a78595994
Diffstat (limited to 'src')
-rw-r--r--src/panel_app.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/panel_app.c b/src/panel_app.c
index b578aef..d7833ac 100644
--- a/src/panel_app.c
+++ b/src/panel_app.c
@@ -355,6 +355,12 @@ panel_app_handle_configure_request(MBPanel *panel, XConfigureRequestEvent *ev)
DBG("%s() panel is w: %i %i h:\n",
__func__, panel->w, panel->h );
+ /*
+ if (papp->x == ev->x && papp->y == ev->y
+ && papp->h == ev->height && papp->w == ev->width)
+ return;
+ */
+
if (panel->orientation == North || panel->orientation == South)
{
xwc.width = ev->width;
@@ -371,17 +377,20 @@ panel_app_handle_configure_request(MBPanel *panel, XConfigureRequestEvent *ev)
{
if (papp == panel_app_list_get_last(panel, panel->apps_end_head))
{
+ DBG("%s() papp is last at end\n", __func__);
panel_app_move_to(panel, papp,
papp->x - (xwc.width - papp->w));
}
else if (papp == panel_app_list_get_last(panel,
panel->apps_start_head))
{
+ DBG("%s() papp is last at start\n", __func__);
panel_app_move_to(panel, papp,
- papp->x + (xwc.width - papp->w));
+ papp->x /*+ (xwc.width - papp->w)*/);
}
else
{
+ DBG("%s() papp is nowhere special\n", __func__);
panel_apps_nudge (panel, papp->next, xwc.width - papp->w);
}
papp->w = xwc.width;
@@ -413,7 +422,7 @@ panel_app_handle_configure_request(MBPanel *panel, XConfigureRequestEvent *ev)
panel->apps_start_head))
{
panel_app_move_to(panel, papp,
- papp->y + (xwc.height - papp->h));
+ papp->y /* + (xwc.height - papp->h) */);
}
else
{