[PD-dev] [ pure-data-Bugs-2933148 ] [pd-gui-rewrite] 'vis 1' to canvas moves window

SourceForge.net noreply at sourceforge.net
Mon Jan 18 09:28:46 CET 2010


Bugs item #2933148, was opened at 2010-01-15 23:17
Message generated for change (Comment added) made by reduzent
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=2933148&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: pd-devel
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Roman Haefeli (reduzent)
Assigned to: Hans-Christoph Steiner (eighthave)
Summary: [pd-gui-rewrite] 'vis 1' to canvas moves window

Initial Comment:
When sending 'vis 0' and 'vis 1' repeatedly to a canvas, the window moves downwards with each cylce. The amount of the shift seems dependent on the height of the menu of the window. If the window is wide enough so that the whole menu fits into one line, the amount is significantly smaller (ca. 30px). With a narrow window and a menu splitted into three lines,  the amount is bigger (ca. 60px). 

Could it be, that the stored window position refers to the patching area, whereas when drawn by the window manager, the patching area is shifted by the menu? 

I tested on Gnome and fluxbox. The shifting does not happen with pd-vanilla. 

----------------------------------------------------------------------

Comment By: Roman Haefeli (reduzent)
Date: 2010-01-18 08:28

Message:
Interesting enough, it does not happen with pd-vanilla in fluxbox, whereas
with pd-gui-rewrite it happens on both, Gnome and fluxbox. With
pd-gui-rewrite the shifts are bigger and seem to be related to the menu
height, while with pd-vanilla on Gnome the shifts are much smaller.


----------------------------------------------------------------------

Comment By: Hans-Christoph Steiner (eighthave)
Date: 2010-01-17 23:52

Message:
Unfortunately, the shifting does happen on Pd-vanilla, just less so.  There
doesn't seem to be a way in Tcl/Tk to measure the size of the window frame
of X11 windows.  Different window managers will have different sizes of
window frames.  In 0.43 it was moving a lot since it didn't take into
account the window frame at all.  I added the measurements for
GNOME/metacity, which should work well for a wide range of setups. 
Hopefully someone can figure out how to actually measure window frame.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=2933148&group_id=55736




More information about the Pd-dev mailing list