These settings, as of yesterday, always sized and anchored the xschem window
to the upper right corner of the extended display which, in my case, was to
display DP-5 regardless of which display contained the xterm window that
executed the xschem command.
With the recent window placement changes the xschemrc setting is ignored. The
new behavior is as follows:
The xschem window appears in the middle of the same display that the xterm
window that executes the xschem command.
The xschem window has no graphics sub window and shows no schematic.
If the xschem window is manually resized and the 'F' key is pressed then
a schematic will appear.
manual execution of the 'xschem zoom_full center' command works.
My custom mouse_bindings.tcl file that specifies the following for mouse
button 8 does not work any more: { xschem zoom_full center }
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For the placement I will push a commit soon that places windows based on
the initial_geometry specification.
The change aims to introduce persistent geometry, so windows will open in
the same position when they were last closed.
But as you noticed the initial geometry should be higher priority.
The button 8 binding that does not work should be investigated. I had to
reorder some operations in the window creation to avoid race conditions
between the various actors ( Xserver, window manager, application). Will
check.
These settings, as of yesterday, always sized and anchored the xschem
window
to the upper right corner of the extended display which, in my case, was to
display DP-5 regardless of which display contained the xterm window that
executed the xschem command.
With the recent window placement changes the xschemrc setting is ignored.
The
new behavior is as follows:
1.
The xschem window appears in the middle of the same display that the
xterm
window that executes the xschem command.
2.
The xschem window has no graphics sub window and shows no schematic.
3.
If the xschem window is manually resized and the 'F' key is pressed
then
a schematic will appear.
4.
manual execution of the 'xschem zoom_full center' command works.
5.
My custom mouse_bindings.tcl file that specifies the following for
mouse
button 8 does not work any more: { xschem zoom_full center }
BTW, attached is my custom mouse_bindings.tcl file. The last lines of the file checks for the existence of xschem variable 'has_x' . Is this still valid after the new window placement mods?
Since you have the newest xschem you can try to open a schematic, manually set the window placement and size and close the window.
When you reopen the window it should be in the same position and of the same size. Each different schematic filename remembers its geometry.
If you have a chance to test that would be great.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It appears that if the set initial_geometry variable is set in the xschemrc file that takes precedence
during startup over any manual resizing and placement. If this variable is commented out in the
rc file then manual resizing and placement is remembered if I either close a schematic or if I quit
xschem. If I perform a 'xschem exit' command then manual placement and resizing is not remembered.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think the command xschem exit closewindow
will remember the size.
If there are no side effects I will also save the geometry when doing just xschem exit
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Some of the recent window placement changes has really broken xschem on my
system. Here are the relevent specs of my system:
HDMI-0 connected primary 1920x1080+0+0
DP-5 connected 1920x1080+1920+0
These settings, as of yesterday, always sized and anchored the xschem window
to the upper right corner of the extended display which, in my case, was to
display DP-5 regardless of which display contained the xterm window that
executed the xschem command.
With the recent window placement changes the xschemrc setting is ignored. The
new behavior is as follows:
The xschem window appears in the middle of the same display that the xterm
window that executes the xschem command.
The xschem window has no graphics sub window and shows no schematic.
If the xschem window is manually resized and the 'F' key is pressed then
a schematic will appear.
manual execution of the 'xschem zoom_full center' command works.
My custom mouse_bindings.tcl file that specifies the following for mouse
button 8 does not work any more: { xschem zoom_full center }
You are right.
For the placement I will push a commit soon that places windows based on
the initial_geometry specification.
The change aims to introduce persistent geometry, so windows will open in
the same position when they were last closed.
But as you noticed the initial geometry should be higher priority.
The button 8 binding that does not work should be investigated. I had to
reorder some operations in the window creation to avoid race conditions
between the various actors ( Xserver, window manager, application). Will
check.
On Fri, Sep 26, 2025, 20:27 Paul Bodenstab bobo888@users.sourceforge.net
wrote:
How do you source the mouse_bindings.tcl ?
have you added a line in xschemrc or ... ?
I appended the following lines to my xschemrc file:
MY EXTRA MOUSE BUTTONS BINDING TCL FILE TO LOAD AT STARTUP
lappend tcl_files $env(HOME)/.xschem/mouse_bindings.tcl
BTW, attached is my custom mouse_bindings.tcl file. The last lines of the file checks for the existence of xschem variable 'has_x' . Is this still valid after the new window placement mods?
I think this (mousebindings.tcl) issue is now fixed. Please check.
Still working on some subtle cases where (additional) windows need to be resized to see the schematic. Will figure out this hell sooner or later.
Yes, it appears that both the mouse bindings as well as the set initial_geometry now work.
Thank you Stefan!
Since you have the newest xschem you can try to open a schematic, manually set the window placement and size and close the window.
When you reopen the window it should be in the same position and of the same size. Each different schematic filename remembers its geometry.
If you have a chance to test that would be great.
It appears that if the set initial_geometry variable is set in the xschemrc file that takes precedence
during startup over any manual resizing and placement. If this variable is commented out in the
rc file then manual resizing and placement is remembered if I either close a schematic or if I quit
xschem. If I perform a 'xschem exit' command then manual placement and resizing is not remembered.
I think the command
xschem exit closewindowwill remember the size.
If there are no side effects I will also save the geometry when doing just
xschem exit