Menu

Latest Window Placement mods have really broken Xschem on my PC

2025-09-26
2025-09-26
  • Paul Bodenstab

    Paul Bodenstab - 2025-09-26

    Some of the recent window placement changes has really broken xschem on my
    system. Here are the relevent specs of my system:

    1. Dual monitors settings as reported by xrandr:

    HDMI-0 connected primary 1920x1080+0+0
    DP-5 connected 1920x1080+1920+0

    1. xschemrc setting 'set initial_geometry {1344x1021-0+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:

    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 }

     
    • stefan

      stefan - 2025-09-26

      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:

      Some of the recent window placement changes has really broken xschem on my
      system. Here are the relevent specs of my system:

      1. Dual monitors settings as reported by xrandr:

      HDMI-0 connected primary 1920x1080+0+0
      DP-5 connected 1920x1080+1920+0

      1. xschemrc setting 'set initial_geometry {1344x1021-0+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:

      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 }


      Latest Window Placement mods have really broken Xschem on my PC
      https://sourceforge.net/p/xschem/discussion/general/thread/d4c77bb4e3/?limit=25#2e82


      Sent from sourceforge.net because stefan.schippers@gmail.com is
      subscribed to https://sourceforge.net/p/xschem/discussion/general/

      To unsubscribe from further messages, a project admin can change settings
      at https://sourceforge.net/p/xschem/admin/discussion/forums. Or, if this
      is a mailing list, you can unsubscribe from the mailing list.

       
    • stefan

      stefan - 2025-09-26

      How do you source the mouse_bindings.tcl ?
      have you added a line in xschemrc or ... ?

       
  • Anonymous

    Anonymous - 2025-09-26
    Post awaiting moderation.
  • Paul Bodenstab

    Paul Bodenstab - 2025-09-26

    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

     
  • Paul Bodenstab

    Paul Bodenstab - 2025-09-26

    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?

     
  • stefan

    stefan - 2025-09-26

    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.

     
  • Paul Bodenstab

    Paul Bodenstab - 2025-09-26

    Yes, it appears that both the mouse bindings as well as the set initial_geometry now work.

    Thank you Stefan!

     
  • stefan

    stefan - 2025-09-26

    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.

     
  • Paul Bodenstab

    Paul Bodenstab - 2025-09-26

    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.

     
  • stefan

    stefan - 2025-09-26

    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

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.