Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JabRef opens on full screen and toolbar doesn't work #11530

Open
2 tasks done
RPadial opened this issue Jul 22, 2024 · 23 comments
Open
2 tasks done

JabRef opens on full screen and toolbar doesn't work #11530

RPadial opened this issue Jul 22, 2024 · 23 comments
Labels
component: ui [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs platform: linux

Comments

@RPadial
Copy link

RPadial commented Jul 22, 2024

JabRef version

5.15 (latest release)

Operating system

GNU / Linux

Details on version and operating system

Ubuntu 20.04 and Linux Mint 21.3 (Ubuntu 22.04)

Checked with the latest development build (copy version output from About dialog)

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Intall Jabref
  2. Have 2 screens connected and switched on
  3. Open Jabref
  4. Check Jabref opens on full screen and toolbar doesn't work
    I think it is related with having 2 screens. I have disabled one on them and now Jabref is working.
    Tested with snap, flatpak and native installation

Appendix

...

Log File
Paste an excerpt of your log file here
@wujastyk
Copy link

see #10731

@RPadial
Copy link
Author

RPadial commented Jul 28, 2024

Working on Linux Mint 21.3. I opened Jabref once with only one screen connected, and afterwards, it always works with two screens.
Different behavior in Ubuntu 20.04. After open Jabref with only one screen connected, it open correctly once but it turns to the initial behavior instead.

@ThiloteE ThiloteE added [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs component: ui platform: linux labels Aug 1, 2024
@github-project-automation github-project-automation bot moved this to Normal priority in JabRef UI Improvements Aug 1, 2024
@Siedlerchr
Copy link
Member

Thank you for reporting this issue. We think, that is already fixed in our development version and consequently the change will be included in the next release.

We would like to ask you to use a development build from https://builds.jabref.org/main and report back if it works for you. Please remember to make a backup of your library before trying-out this version.

@github-project-automation github-project-automation bot moved this from Normal priority to Closed in JabRef UI Improvements Aug 7, 2024
@RPadial
Copy link
Author

RPadial commented Aug 7, 2024

It seem jabref_5.16_amd64.deb fixes the issue on Linux Mint 21.3 but not tested on Ubuntu 20.04.
purged 5.15 version with apt remove --purge jabref and apt autoremove in order to remove configuration files because previous jabref version was working with the workarund previously described.

@Siedlerchr
Copy link
Member

Siedlerchr commented Aug 7, 2024

Have you tried resetting the preferences in JabRef? Can you share a screenshot?
Or is this about the 2 screens?

@Siedlerchr Siedlerchr reopened this Aug 7, 2024
@github-project-automation github-project-automation bot moved this from Closed to Normal priority in JabRef UI Improvements Aug 7, 2024
@RPadial
Copy link
Author

RPadial commented Aug 7, 2024

I have just reset preferences and issue is still present

Captura de pantalla de 2024-08-07 20-27-50
The bar to close(minimize the window is not present.

Now the workaround I found doesn't work.

@koppor
Copy link
Member

koppor commented Aug 7, 2024

With one screen it works. I used https://github.com/JabRef/jabref/tree/main/scripts/vms/linux-mint-cinnamon and run from source.

I am struggling to get two monitors working in Virtual Box - https://superuser.com/a/207291/138868. This is my blocker to check the issue.

@koppor
Copy link
Member

koppor commented Aug 7, 2024

@RPadial Do you have a special window manager or "just" the plain Cinnamon?

@RPadial
Copy link
Author

RPadial commented Aug 7, 2024

Yes, it works with only one monitor.
Just cinnamon but note that issue is also present on Ubuntu desktop with gnome with slightly different behaviour.

@koppor
Copy link
Member

koppor commented Aug 7, 2024

Your screenshot shows the second monitor, I assume.

On your first monitor, what does the context menu of the JabRef app icon say?

image

@koppor
Copy link
Member

koppor commented Aug 7, 2024

Alt and "left mouse down" and then move with the mouse seems to be the shortcuts to move a window. Can you move it?

@RPadial
Copy link
Author

RPadial commented Aug 8, 2024

@koppor Yes, that the second monitor. Jabref opens in monitor n. 1 that is the second monitor. Monitor n.2 i set as the main monitor
Captura de pantalla de 2024-08-08 07-03-34

This is the screenshot with both monitors:
Captura de pantalla de 2024-08-08 07-12-07

Note that if I change main monitor to the n.1, it is working even if I reset the preferences, The issue cold be related with cinnamon/gnome launching windows on monitor n.1 instead of in the main one.

I tried to:

  1. Reset the preferences.
  2. Set monitor n.1 as main monitor.
  3. Launch Jabreb. It is working well on monitor n.1. I do not move it to the monitor n.2 (my main monitor)
  4. Change preferences to set monitor n.2 to be the main one,
  5. Launch again Jabref without resetting preferences. It starts on monitor n.1 with the issue.

In the workaround I moved Jabref window to monitor n.2, so I performed another test:

  1. Reset preferences.
  2. Set monitor n.2 as the main one (this is my worksetup)
  3. Launch Jabref. Window appears on monitor n.1 with the issue.
  4. Change preferences to set monitor n.1 to be the main one and launch Jabreb. It is working.
  5. Move Jabref window to the monitor n.2
  6. Set monitor n.2 to be main one and restart Jabref. It works.
  7. Move again Jabref window to monitor n.1 and restart Jabref. The issue comes again

The the issue is present, there is no way of moving the Jabref window with "Alt + left clic" neither with "Cmd + any arrow key". It only can be minimized or closed with the context menu on the app icon.

All these screeshot and test are performed Jabref 5.15. The workaround doesn't work on Jabref 5.16 because it always launches on monitor n.1 and it doesn't save the previous window's position.

Could you help you to check the differences between the default preferences file and the file after the workaround or any logfile? Which file would you need?

@koppor
Copy link
Member

koppor commented Aug 9, 2024

What would be nice, if you tried "--debug" (https://docs.jabref.org/advanced/commandline#debug-mode-debug). JabRef should write out Screen information and which decision it took.

I am going to try for myself; but currently on holiday with less time for JabRef.

@RPadial
Copy link
Author

RPadial commented Aug 12, 2024

@koppor
When the issue is present, mainStages.SIZE_Y changes to 1114.0. My resolution is 1920:1080 in both monitors.
Please, find attached the logs files. Note that the issue comes when jabref launches in the monitor is not set to main. I set in the filename in which monitor it launches and which monitor is set to main.
log_2024-08-12_08-58-34_launch_2_main_2.txt
log_2024-08-12_08-59-28_launch_2_main_1.txt
log_2024-08-12_09-01-06_launch_1_main_2.txt
log_2024-08-12_09-01-53_launch_1_main_1.txt

@koppor
Copy link
Member

koppor commented Aug 20, 2024

I am asking myself if JabRef should do any window management on non-Windows systems. I think, Linux does a very good job on Window management - and JabRef should not do anything regarding remembering screen positions, window size, and maximization state. Thoughts on this?

@koppor
Copy link
Member

koppor commented Aug 20, 2024

I spend nearly the whole day to replicate the display settings described at #11530 (comment). Not working. Details at https://forums.linuxmint.com/viewtopic.php?p=2513417#p2513417.

@wujastyk
Copy link

wujastyk commented Aug 20, 2024

I am asking myself if JabRef should do any window management on non-Windows systems. I think, Linux does a very good job on Window management - and JabRef should not do anything regarding remembering screen positions, window size, and maximization state. Thoughts on this?

JabRef 5.16--2024-08-20--6b8c5a3
Linux 6.8.0-40-generic amd64
Java 21.0.2
JavaFX 22.0.2+4

System:
Kernel: 6.8.0-40-generic arch: x86_64 bits: 64 compiler: gcc v: 13.2.0 clocksource: tsc
Desktop: Cinnamon v: 6.2.9 tk: GTK v: 3.24.41 wm: Muffin v: 6.2.0 vt: 7 dm: LightDM v: 1.30.0
Distro: Linux Mint 22 Wilma base: Ubuntu 24.04 noble

Two monitors.

I think this would be okay for Linux Mint + Cinnamon. Other apps seem to leave window management to Cinnamon. It means that JR will always start in the same location, and may always need to be dragged to the preferred location, I think, but that's not too troublesome.

I am a bit surprised that this issue is still present for other users. It went away completely for me two weeks ago, after the removal of "fullscreen" mode from the JR code.

@RPadial
Copy link
Author

RPadial commented Sep 20, 2024

Hello,
The problem with the dev version is that jabref always launches on screen number 1 in full screen mode, which is not the main one in my setup. If I get to change to the main screen, it comes back to screen number one after restarting jabref, so it is always unsable.

I have experience exactly the same behaviour in ubuntu 20.04.

@koppor
Copy link
Member

koppor commented Oct 13, 2024

I have experience exactly the same behaviour in ubuntu 20.04.

Also Cinnamon or another window manager?

@koppor koppor changed the title Jabref opens on full screen and toolbar doesn't work JabRef opens on full screen and toolbar doesn't work Oct 13, 2024
@wujastyk
Copy link

wujastyk commented Oct 13, 2024

JabRef 6.0--2024-10-13--4644e8d
Linux 6.8.0-45-generic amd64
Java 21.0.2
JavaFX 23+29

Cinnamon v: 6.2.9 Distro: Linux Mint 22 Wilma

Today's JR launched just fine under Linux and Cinnamon. Non-maximized window and with working toolbar.

Good!

@RPadial
Copy link
Author

RPadial commented Oct 26, 2024

Same problem with JabRef 6.0

Image

@Siedlerchr
Copy link
Member

when I reset my prefs under mac, jabref would be set to setMaximized = true, however, on exit the stage still reported maximized = true, although I resized the window.
This could be the same here...
@RPadial
Try to export your preferences -> edit <entry key="windowMaximised" value="true"/> to false and re-import the preferences.

@wujastyk
Copy link

wujastyk commented Dec 27, 2024

JabRef 6.0-alpha.1--2024-12-23--4b7ac10
Linux 6.8.0-51-generic amd64
Java 23.0.1
JavaFX 23.0.1+4

After months of peace, I'm having this full-screen problem again, on my Linux Mint Thinkpad T580.

I might have triggered it myself. In preferences, I selected "memory stick mode". Then I started having the problem. Then I turned off "memory stick mode" but the full-screen problem continued.

I tried my old trick of launching with the program argument "-p my-private-preferences.xml.txt" but that did not cure the problem as it used to. :-( Those preferences do include <entry key="windowMaximised" value="false"/>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ui [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs platform: linux
Projects
Status: Normal priority
Development

No branches or pull requests

5 participants