Results 1 to 2 of 2

Thread: Window size/behaviour differences on Windows and Linux

  1. #1
    Squire
    Join Date
    Sep 2009
    Posts
    28

    Default Window size/behaviour differences on Windows and Linux

    Hello,

    When creating Window on Linux like this...

    Code:
    CL_OpenGLWindowDescription desc;
    
    desc.set_title("Title");
    desc.set_size(CL_Size(640, 480), false); // <- should include window frame
    
    CL_DisplayWindow displayWindow(desc);
    The sizes of windows are different (look at the screen).
    Is this a bug?

    Also on Windows there is ability to maximalize game window but on Linux not.

    BTW is there anywhere bugtrack for things like this?
    Attached Images Attached Images  
    Last edited by genail; 12-30-2009 at 05:20 PM. Reason: Forgot to add screenshot

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    This is a known problem with an unknown solution...

    See Sources/Display/X11/x11_window.cpp :

    See - CL_X11Window::get_window_frame_size()

    The function currently returns frame size as "frame_size(0,0,0,0);"
    The problem is determining the window frame size before the first window is created.

    Currently, we do not know how to do this neatly.

    CL_X11Window::get_window_frame_size() contains:

    #ifdef FIXME_THIS_LOOKS_TERRIBLE

    This fixes it, however a window is opened then closed first - that does not look very nice. And sometimes did not work

    Maybe it's possible via dlopen to use kde and gnome libs to do it... But that may lead to further problems.

Similar Threads

  1. X windows inside a sdl/clanlib window
    By l3thal in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 12-26-2009, 08:47 PM
  2. Drawing differences when using CL_GUIManager*
    By genail in forum Official ClanLib SDK Forums
    Replies: 6
    Last Post: 12-12-2009, 07:37 AM
  3. Size of CL_String
    By xenus in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 10-10-2009, 06:15 PM
  4. How to : Delete/Close a Window and Center a Window ?
    By Fr3DBr in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 08-24-2009, 02:55 AM
  5. default window size...
    By harrio in forum Novashell Game Creation System
    Replies: 6
    Last Post: 02-18-2008, 05:38 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •