Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I am trying to resize a window using the XResizeWindow(), the window was not created by me. I have got the ID of the window the XResizeWindow() needs, but ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    2

    XResizeWindow not working?

    Hi,

    I am trying to resize a window using the XResizeWindow(),
    the window was not created by me. I have got the ID of the
    window the XResizeWindow() needs, but still the XResizeWindow() doesn't resize the Window.

    Instead of XResizeWindow(), I tried by sending the ConfigureRequest event too, but still there is not effect.
    Anybody knows what I could be doing wrong?

    Thanks
    Suresh

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    Just a possibility here:

    Your XResizeWindow() request won't necessarily be sent to the X server until one of two things happens:
    1. you wait for an event; or
    2. you do an XFlush().

    Are you doing one of these two things?
    --
    Bill

    Old age and treachery will overcome youth and skill.

  3. #3
    Just Joined!
    Join Date
    Nov 2008
    Posts
    2

    XResizeWindow not working?

    Hi Bill,

    I have used Xsync() & XFlush() after the call to XResizeWindow(). I tried with some other functions like
    XMoveResizeWindow() and XConfigureWindow() too.
    But no effect on the window. Isn't it possible to
    resize a window if it is not created by us?

    Thanks and regards
    Suresh C

  4. #4
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    Isn't it possible to resize a window if it is not created by us?
    Yes, it is, and I have no idea why it's not working for you.
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

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