LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-24-2008, 02:23 AM   #1
rona_dinihari
LQ Newbie
 
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
GTK application window does not get updated on second monitor


I am building a gtk+ application to display information posted by other application. I use it in dual monitor environment. In first monitor it looks fine, but on second monitor the window does not get updated.

This is xorg.conf i use to make the dual monitor:
Section "ServerLayout"
Identifier "seat0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "Xinerama" "off"
Option "Clone" "off"
EndSection

I use xmlrpc-c to send the data i want to display. The second monitor does not use keyboard or mouse.

To send the application window to the second monitor i use this:
$ DISPLAY=:0.1 mygtkapp

I use a GtkLabel to test the operation. Both runs gtk_label_set_text, gtk_label_get_text on both says the widget text has been changed.

So the questions are:
Why the window does not get updated on the second monitor?
How can i fix this?
 
  


Reply



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
GTK multi-threaded application akhil1 Programming 2 01-20-2009 03:59 AM
gtk application munna_dude Programming 1 03-17-2007 01:00 AM
How to add GTK window on the QT window? sudheervegi Programming 2 07-05-2006 10:32 AM
how to link helpblocks application to gtk application m.harshavardhan Linux - Software 0 08-16-2005 08:39 AM
Updated libpng, now existing GTK prog won't start anymore - Rh9 rylan76 Linux - Software 1 05-12-2005 01:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration