hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.92k stars 849 forks source link

Windows are floating and out of visibility (out of screen) when created by java jar #2856

Open marco-zan opened 1 year ago

marco-zan commented 1 year ago

Hyprland Version

Hyprland, built from branch main at commit 08651736ada39f62b246c44c1d8a81e2787f23d5 dirty (keybinds: add toggle to dpms). Tag: v0.27.2-62-g08651736 flags: (if any)

Bug or Regression?

Bug

Description

When trying to launch a program that have a (presumably) a java-related gui, it is always treated as floating and often placed out of the screen and impossible to make tiled.

My impression is that there is a valid reason to make those windows floating, but i don't know if there is a way to make them pseudo-tiled instead of floating or just to make them appear always in an easy spot (i would consider also a fixed coordinate like 60,60)

How to reproduce

image

I am using a minecraft mod as an example. The command is correct (left) as i should see a gui, that is in fact stated on the right terminal, but is placed out of my 1920x1080 screen. I am sure there are no other problems because yesterday i was able to see it and use the bottom half of the window to actually click on the buttons and succesfully (use the program) install the mod.

I am not associated in any way with this particular minecraft mod, and i am using it as an example cause it is small and straightforwarding to just try. Please note that this happens even with the original minecraft launcher the same as any other launcher and i believe you can use them as well, except that the original launcher effectively always pops up in a usable place

To download the mod use this link Optifine mod (I just now found out there are ads downloading the mod. This link should be fine, but if is needed you can find the mod with google, or I would compile a basic javafx program myself and send it to you)

Thank you very much in advance, and ask me any time if you need other info

Crash reports, logs, images, videos

No response

MightyPlaza commented 1 year ago

try hyprctl dispatch exec [centerwindow] ~/command.sh

vaxerski commented 1 year ago

if you put it in a script it wont be picked up.

I could reject configure requests outside of the screen but then someone like kainoa will come and be like "muh application does funny and needs that"

rhyllus commented 3 weeks ago

Still unsolved?