Genio's titlebar is over the top of the display

Hello,

After switching into fullscreen mode in Genio, the titlebar is over the top of the display and I’m unable to get it back.

Here is a screenshot:

I reopened the app multiple times, changed the video mode (it was a bit smaller), but it’s still not working properly.

I’m running Haiku R1 Beta 5 32bit in a VM (with GNOME Boxes)

I’m very new to Haiku (and BeOS).

Try holding CTRL+ALT and dragging the window.

4 Likes

You can try with your terminal
hey Genio let Window 0 do MoveTo BPoint[100,100]

3 Likes

It worked, thanks!

This looks like a bug.

Most likely you closed genio while it was in fullscreen and it saved it’s last position but not the idea that it is fullscreen.

I have not looked at the code so this is speculation based on similar misbehaving apps in the past… maybe having a proper fullscreen api would solve that.

Anyway this can likely be patched with a MoveOnScreen call.

Here is an example usage of how Waddlesplash fixed preferences preflets beeing able to start out of screen: https://cgit.haiku-os.org/haiku/commit/?h=hrev58226&id=0324754ddbb0132dc7453511c23af0e38e825e1e

When Genio is in fullscreen mode and the user quits, before shutting everything down and saving the application state (including the Window’s size and position) we exit the fullscreen mode. There’s no need to call MoveOnScreen in this case.
In fact, I can’t reproduce the issue. @Mibi88 could you please provide the exact steps to reproduce it? Better if you open an issue here otherwise you can post it here and I’ll open one for you.
Thanks

That call should be where you restore the frame from settings when opening again. Not related to fullscreen itself.

Well, it seemed to me you suggested that this very problem could be solved by using MoveOnScreen.
Nevertheless, this is a valid point but I wonder if it’s necessary only if the window is put off screen completely. Otherwise you can always drag any window (except borderless) by clicking on the border.

MoveOnScreen supports other modes of operation than move if partially offscreen, for me however I don’t see the point in this case.

You are correct that this can be recovered from, even easier when using ctrl alt and left mouse drag. I would argue that not every user is aware of these however, and to me it doesn’t make much sense that a window beeing started would open partially off-screen normally.

You also don’t need to guard this call, when the window is not off screen it will do nothing.

For reference: The Haiku Book: Window.h File Reference

I agree, but if one moves it aside and partially off-screen I suppose he knows what it’s doing.
Anyway, maybe we should make it part of the guidelines as a recommandation? That is, every application should not start with any window partially off-screen although not mandatory.

Do you mean the HIG?
I would not object to that.

In any case this usually only happens when restoring from a saved rect : )

(one example I had was that I ran the system in 4k and later ran the same disk in hull-hd in a vm and preferences would be fully off-screen)

1 Like

Perhaps is it happening if the user kills Genio to close it or, if they quit Haiku while Genio is still running fullscreen (in another workspace)?

Most likely you closed genio while it was in fullscreen

Yes I closed it, with alt+F4 IIRC, because I was unable to access the title bar.

Ah that’s a very good point, indeed.

I just noticed that you responded while I was responding so I’m rewriting it here to be more visible:

(one example I had was that I ran the system in 4k and later ran the same disk in hull-hd in a vm and preferences would be fully off-screen)

I think Haiku should push windows that have offscreen title bars back on screen.

EDIT:

I removed it from my previous post.

I’m a bit confused of the steps you took. Could you elaborate?
Was the window partially off screen before going full screen? With Alt-F4 you mean ALT-Q or did you actually press ALT-F4?

Was the window partially off screen before going full screen?

No it wasn’t. I just noticed that my message was incorrect:

Yes I closed it, with alt+F4 IIRC, because I was unable to access the title bar.

I meant the menu bar.

I tried exiting full screen mode but didn’t managed to (IDK why), so I closed it by pressing Alt+F4. When reopening it, the title bar was above the top of the screen, so I increased the resolution, but the title bar was still above the top of the screen, so I created this topic to ask for help.

I can’t really detail much more, I said everything I remember :sweat_smile:.

I hope it helps you to figure this bug out.

Alt-F4 does not close applications on Haiku. If you used Alt-F4 you switched to workspace number 4 instead and the app would still be running.

Then the app was probably still running… I don’t really know… I got a white screen since, and was unable to continue so I rebooted.

The white screen I got:

Sorry if I’m acting in a very dumb way, I’m used to Linux (with GNOME).

That white screen is a debugger, probably for the app_server or input_server. Assuming your keyboard works in it you can use for example “bt” to get a backtrace for debugging