开云体育

Locked Title Bar of Preferences window is off screen. How do I move the window? #preferences


 

I am using Steve Todd's excellent JMRI image for the RPi. When I open the Preferences window, the window always opens right at the top of the screen, and the Title bar is offscreen. I can adjust the height and width of the window by dragging the bottom and side of the window respectively, but haven't found a way to drag the window down so I can see the Title bar. This means I can't reposition the Preferences window.?
?
I tried altering the locY value here:
? ? ? ? ? ?<window xmlns="" class="apps.gui3.tabbedpreferences.TabbedPreferencesFrame:Preferences" height="590.0" locX="603.0" locY="0.0" width="900.0"/>
in the user-interface.xml in the?
? ? ? ? ? /home/pi/.jmri/No_Connection.jmri/profile/43a91532-2e99-4cd4-9a7b-ac862fb6cd7a
?
folder, but that didn't work. Can you give me an idea of how I can move the window, and prevent it from opening "off screen" in future?
?
--
Thanks and Regards
Ron Ventura
Melbourne, Australia

JMRI 5.6+R89a87446cb
Java 11.0.14
Windows 11


 

Ron,

I tried it with locY + 20 pixel. That worked. Well, I tested on Windows 10 and I'm running JMRI 5.9.4. But I assume that it works on the RPi too. Quit JMRI before you edit the file.

Regards,
Klaus

Am 26.09.2024 um 05:46 schrieb Ron Ventura:

I am using Steve Todd's excellent JMRI image for the RPi. When I open the Preferences window, the window always opens right at the top of the screen, and the Title bar is offscreen. I can adjust the height and width of the window by dragging the bottom and side of the window respectively, but haven't found a way to drag the window down so I can see the Title bar. This means I can't reposition the Preferences window.
I tried altering the locY value here:
<window xmlns="" class="apps.gui3.tabbedpreferences.TabbedPreferencesFrame:Preferences" height="590.0" locX="603.0" locY="0.0" width="900.0"/>
in the user-interface.xml in the
/home/pi/.jmri/No_Connection.jmri/profile/43a91532-2e99-4cd4-9a7b-ac862fb6cd7a
folder, but that didn't work. Can you give me an idea of how I can move the window, and prevent it from opening "off screen" in future?
--
Thanks and Regards
Ron Ventura
Melbourne, Australia
JMRI 5.6+R89a87446cb
Java 11.0.14
Windows 11


 

With JMRI not running, delete that line instead of altering it.
It will be recreated when you start up JMRI again with that window in the default position.

--
Peter Ulvestad

JMRI Users Group Moderator ( )
Tam Valley Group Moderator ( )
Sprog-DCC Group Moderator ( )
Edmonton Model Railroad Association ( )


 

All.
?
I tried both editing the line and deleting the line as Peter suggested, but this made no difference. I have uploaded a couple of screen shots to the Photos section (Preferences Title bar off screen - RPi) and also the user-interface.xml files (in the files section - same title). I even tried moving the RPi taskbar from the top to the bottom. that also didn't help, it just put the Preferences screen to the very top, still without a Title bar. This is not the end of the world, just annoying, and reinforces my inherent dislike for all things Linux.
--
Thanks and Regards
Ron Ventura
Melbourne, Australia

JMRI 5.6+R89a87446cb
Java 11.0.14
Windows 11


 

开云体育

Ron,

What happens if you maximize the TigerVNC window _before_ opening the preferences window?

Also, try <ALT+space> to get the window menu to resize the window.

This page might add some clue:

Daniel

On 2024-09-27 07:47, Ron Ventura wrote:

All.
?
I tried both editing the line and deleting the line as Peter suggested, but this made no difference. I have uploaded a couple of screen shots to the Photos section (Preferences Title bar off screen - RPi) and also the user-interface.xml files (in the files section - same title). I even tried moving the RPi taskbar from the top to the bottom. that also didn't help, it just put the Preferences screen to the very top, still without a Title bar. This is not the end of the world, just annoying, and reinforces my inherent dislike for all things Linux.
--
Thanks and Regards
Ron Ventura
Melbourne, Australia

JMRI 5.6+R89a87446cb
Java 11.0.14
Windows 11


 

Hi
1 - try using the appropriate hot key for your windows manager. (if using libwc you will have to do some configuration).
?if using X with lxde you could try dragging with Alt+Left mouse button or Alt-Space to get the frame menu. and select Move, Alt-M may work.
?
2 - I edited my user-interface.xml and it worked fine. Make sure you have got the right one.?
?
Are you getting the preferences due to an error during startup or by selecting preferences? because they are subtably different, and editing user preferences doesnt work for the format. That was fixed as an 80% windows centred on screen 1.
?
Steve G.
?


 

If using libwc.?
To create a move window hotkey on Ctrl+Alt+v
Do not use C-A-m that is an accessability hotkey.
You can? edit a file at $HOME/.config/labwc/rc.xml
?
and add after?? <keyboard>
? ? <keybind key="C-A-v">
? ? ? <action name="move">
? ? ? </action>
? ? </keybind>

If the file doesnt exist? do this in terminal
?
mkdir $HOME/.config/libwc
cat > $HOME/.config/libwc/rc.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc">
? <keyboard>
? ? <keybind key="C-A-v">
? ? ? <action name="move">
? ? ? </action>
? ? </keybind>
? </keyboard>
</openbox_config>
EOF
?