Find the answer to your Linux question:
Results 1 to 4 of 4
I've written an application drawing a black square into the window. If the window needs to be redrawn, there is a method to redraw the square( e.g. there is a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Posts
    4

    Xlib: Window loses contents after hiding


    I've written an application drawing a black square into the window. If the window needs to be redrawn, there is a method to redraw the square( e.g. there is a window above etc,).But the problem: After hidding/minimizing the window there is no square anymore?(Gnome:Metacity) Why? And how to solve this?
    Thanks for answers

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,578
    What toolkit and/or API's are you using to write your application?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Oct 2010
    Posts
    4
    I don't have any toolkit, I'm writing my application with gedit, compiling with GCC in the terminal.
    My OS is Ubuntu 9.10 ->Gnome->Metacity

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,578
    So, you are using Xlib API calls directly? Or X Toolkit? In any case, please post your code here.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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