aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormallum <mallum@b067294f-1dea-0310-9683-c47a78595994>2005-05-23 15:16:31 +0000
committermallum <mallum@b067294f-1dea-0310-9683-c47a78595994>2005-05-23 15:16:31 +0000
commit5620785a5c06e15dce7a4b475d0f9512a0ce6cba (patch)
tree72b5be1146d10230114c4a579ed25a0ce74d3605 /src
parentae2f066ca027d8b665eb9585c024c31679d21fc7 (diff)
downloadmatchbox-panel-5620785a5c06e15dce7a4b475d0f9512a0ce6cba.tar.gz
matchbox-panel-5620785a5c06e15dce7a4b475d0f9512a0ce6cba.tar.bz2
matchbox-panel-5620785a5c06e15dce7a4b475d0f9512a0ce6cba.zip
Improve panel in titlebar handling
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-panel@1162 b067294f-1dea-0310-9683-c47a78595994
Diffstat (limited to 'src')
-rw-r--r--src/panel.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/panel.c b/src/panel.c
index 0116b88..f20e134 100644
--- a/src/panel.c
+++ b/src/panel.c
@@ -1009,10 +1009,6 @@ panel_main(MBPanel *panel)
int xfd;
Bool had_rotation = False;
- XSelectInput (panel->dpy, panel->win, StructureNotifyMask|ExposureMask|
- SubstructureRedirectMask|SubstructureNotifyMask|
- ButtonPressMask|ButtonReleaseMask|PointerMotionMask|
- PropertyChangeMask);
XSelectInput (panel->dpy, panel->win_root,
PropertyChangeMask|StructureNotifyMask);
@@ -1090,6 +1086,7 @@ panel_main(MBPanel *panel)
&an_event.xconfigurerequest);
break;
case ConfigureNotify:
+ DBG("%s(): configureNotify\n", __func__);
if (an_event.xconfigure.window == panel->win_root)
{
had_rotation = True;
@@ -1110,6 +1107,8 @@ panel_main(MBPanel *panel)
int diff = 0;
MBPanelApp *papp = NULL;
+ DBG("mark %i\n", __LINE__);
+
if (panel->ignore_next_config)
{
panel->ignore_next_config = False;
@@ -1133,6 +1132,8 @@ panel_main(MBPanel *panel)
had_rotation = False;
+ DBG("mark %i\n", __LINE__);
+
if ((PANEL_IS_VERTICAL(panel)
&& (an_event.xconfigure.width == panel->w)
)
@@ -1142,7 +1143,7 @@ panel_main(MBPanel *panel)
/* && (an_event.xconfigure.width == dpy_w)
&& dpy_w != panel->w */ )
)
- {
+ {
DBG("%s() flipping ....\n", __func__);
@@ -1178,7 +1179,8 @@ panel_main(MBPanel *panel)
papp = panel->apps_start_head;
else
papp = panel->apps_end_head;
- } else {
+ } else {
+ DBG("mark %i\n", __LINE__);
diff = an_event.xconfigure.width - panel->w;
if (an_event.xconfigure.x > panel->x)
papp = panel->apps_start_head;
@@ -1903,6 +1905,11 @@ MBPanel
dattr_flags,
&dattr);
+ XSelectInput (panel->dpy, panel->win, StructureNotifyMask|ExposureMask|
+ SubstructureRedirectMask|SubstructureNotifyMask|
+ ButtonPressMask|ButtonReleaseMask|PointerMotionMask|
+ PropertyChangeMask);
+
size_hints.flags = PPosition | PSize | PMinSize;
size_hints.x = panel->x;
size_hints.y = panel->y;