! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
embedded app can expand outside the panel boundaries
Status:
RESOLVED: INVALID
Product:
Xfce4-embed-plugin
Component:
General

Comments

Description Liv 2013-01-18 12:34:03 CET
Created attachment 4860 
original state (OK)

I'm using the embed plugin to embed in the panel an 'IMAP Notify' ( http://www.panix.com/~grante/files/imapnotify-0.20.tar.gz ) window which checks for emails. When IMAP Notify changes state to indicate new mail, its embedded window apparently expands outside the panel boundaries. 

See attached screenshots.
Comment 1 Liv 2013-01-18 12:35:02 CET
Created attachment 4861 
modified state (not OK)
Comment 2 Liv 2013-01-18 12:35:45 CET
Created attachment 4862 
unable to revert to original state (not OK)
Comment 3 Liv 2013-01-18 12:37:43 CET
Forgot: 
xfce4-embed 1.2.0
Xfce 4.10
Xubuntu 12.04 Precise
Comment 4 David Schneider 2013-01-19 10:21:18 CET
Have you tried using the -g parameter to specify a geometry in IMAP Notify?  xfce4-embed-plugin can't do much about it if the embedded app ignores the available area presented to it when sizing its own controls.
Comment 5 Liv 2013-01-19 10:49:58 CET
I use 
'/home/liv/Build/imapnotify-0.20/imapnotify.py' --geometry=-0-0 

but I'm not sure it addresses your concern. 

However my hunch is that the issue lays with Embed. In normal circumstances (within the WM window), IMAP Notify doesn't behave like this: it does not expand vertically when it's state changes. (It does expand horizontally, as expected, as there is a new string added to on of its labels, ' (1)', but this is beyond the scope of this report.) Within Embed, though, a vertical expansion occurs for some reason.
Comment 6 David Schneider 2013-01-19 10:58:37 CET
The reason you're seeing the behavior is because when xfce4-embed-plugin first embeds the app, it force-resizes it to fit (shrinking horizontal and vertical).  When IMAP Notify updates, it then resizes itself to its original size, expanding vertically and horizontally back to whatever it feels like.

You'll probably either need to specify a width and height as well on the geometry parameter or change the font size used; the embed plugin can't wrestle with ill-behaved applications.

Bug #9777

Reported by:
Liv
Reported on: 2013-01-18
Last modified on: 2013-01-19

People

Assignee:
David Schneider
CC List:
0 users

Version

Version:
unspecified

Attachments

original state (OK) (9.58 KB, image/png)
2013-01-18 12:34 CET , Liv
no flags
modified state (not OK) (10.66 KB, image/png)
2013-01-18 12:35 CET , Liv
no flags
unable to revert to original state (not OK) (10.56 KB, image/png)
2013-01-18 12:35 CET , Liv
no flags

Additional information