|
A4/Ubuntu - No title bar in windowed mode |
Frank Drebin
Member #2,987
December 2002
|
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"} 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"} BTW: set_gfx_mode() returns 0 in both cases. Do you have any ideas how to fix that? |
Niunio
Member #1,975
March 2002
|
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
Member #14,841
January 2013
|
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
Member #2,987
December 2002
|
Both of you were right ! 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
Member #14,841
January 2013
|
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).
|
|