LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-26-2013, 10:33 PM   #1
nitin_kumgoyal
LQ Newbie
 
Registered: Nov 2013
Posts: 4

Rep: Reputation: Disabled
Previous image display in Xserver while launching the application


I have made one application using Xlib and loading a jpeg stream video in the x_window.

The application is working fine but I am seeing one issue that whenever i restart the application, it firstly shows the old image where I have stopped the application and then only it moves and start the main application.

I am not seeing anywhere how it is storing that image. Ever Xsetroot is not helping.

The other strange thing is that even after reboot the same thing is there so it means either Xserver is saving that info somewhere or something else is happening.

If i start the application manually like

startx ./myapp the old image comes for a sec and then the normal app starts working

if i launch it automatically by putting it in rc.local,
the old image continues to display at 6-7 secs and then the normal app starts.

Also, it is happneing when i normally starts the startx without my app then also whateve the last image was, it vl display firstly and then only the KDE desktop will come.

Anyone has seen this issue before?

BTW i am using Slackware 12.0 and the Xserver bundled within this distro.

Last edited by nitin_kumgoyal; 11-26-2013 at 10:37 PM. Reason: Forgot to add OS details
 
Old 11-27-2013, 05:20 AM   #2
GazL
Senior Member
 
Registered: May 2008
Posts: 3,365

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
I can't say I've ever noticed this happen, but I suppose it's feasible that either the Xserver or the graphics card could allocate exactly the same blocks of uninitialised memory each time and that is how the prior image is persisting. The XServer in Slackware 12.0 is pretty old now, many bugs have passed under the bridge since then.

Perhaps you could add a XClearWindow() call before you map the window just to be sure it's nice and empty when it is first presented? Might be an idea to also clear it just before program exit too for user privacy reasons.


I'm not really an expert with this stuff though, these are just some thoughts that occurred to me.


Oh, and if you're actually drawing to the root window (probably not the best idea), then make sure your xserver isn't using the "-background none" option (Assuming that option existed for the Xserver in 12.0)

Last edited by GazL; 11-27-2013 at 05:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Launching application lonesoac0 Linux - Newbie 6 10-02-2011 02:20 PM
Launching X application from a Brandz zone crisostomo_enrico Solaris / OpenSolaris 4 10-08-2007 05:01 AM
launching a program from a C++ application Error1312 Programming 7 02-25-2004 08:18 AM
Launching application when gnome startups appel Linux - Software 3 08-02-2003 10:06 PM
launching an application when X starts... DKnight Linux - Newbie 13 06-08-2003 07:43 AM


All times are GMT -5. The time now is 03:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration