A4/Ubuntu - No title bar in windowed mode
Frank Drebin

Hi guys,

I recently encountered some strange behaviour using allegro 4.4.2 on Ubuntu: When setting a windowed mode with a resolution of 640x480 the window appears as it should having a title bar:

{"name":"610905","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/2\/a2aa60107f80d81bd89aeff2a53a9780.png","w":1920,"h":1080,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/2\/a2aa60107f80d81bd89aeff2a53a9780"}610905

However, if the window is created with a resolution of 1280x960 there is no title bar and the window cannot be moved.

{"name":"610906","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/b\/fbb3c865c6f719727181e5a0d3905b08.png","w":1920,"h":1080,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/b\/fbb3c865c6f719727181e5a0d3905b08"}610906

BTW: set_gfx_mode() returns 0 in both cases.

Do you have any ideas how to fix that?

Niunio

If the window height is similar to your desktop height, the window manager aligns it to the top trying to ensure it will show all the content.

Try this: click on the application icon with mouse right button (to show the window system menu), select "move window", then use cursor keys to move it down. Does it show the title bar?

Eric Johnson

I agree with what Niunio said.

Try this: press the Windows icon and the "S" key at the same time to bring up all of the work-spaces at once. From there, click and drag the bigger window around and see if it's really missing a title bar or not.

Frank Drebin

Both of you were right ;D ! When I move the window to another workspace the title bar becomes visible. It is just hidden underneath Ubuntus' task bar by default.

Still I am wondering if this can be changed?

Eric Johnson

You could try to set the starting position of the display window closer to the bottom of the screen, so the top bar would be visible, but I don't know if this can be done in Allegro 4 (it can in Allegro 5).

Thread #616914. Printed from Allegro.cc