LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 10-31-2012, 10:44 AM   #1
ba_kirang
LQ Newbie
 
Registered: Apr 2012
Posts: 17

Rep: Reputation: Disabled
Standalone GUI application misaligned or shifted due to metacity


Hi all,


I have a standalone GUI application (Qt based) which runs on Ubuntu 12.04 but without any desktop manager. Application is started from ".xinitrc" and once it is executed it takes over the full screen. As some options provided in the GUI requires window management, I am using metacity (called from ".xinitrc" ).


For some reason if the application is started while metacity is running, the whole display is shifted towards right-bottom. So there are black bars on left and top and I miss a portion of GUI or the right-botton. From what I can see of the display, it does not look like a resolution problem("xrandr -s 1360x768" in ".xinitrc").


If I make sure that metacity is not running when the application comes up, the display looks fine. I tried some workarounds to make metacity start after the GUI application, but I am not satisfied with that.


Can anyone suggest a better fix for this. I did not find any gconf setting for metacity, related to positioning or alignment. I googled for any related issues but did not get any solutions. I tried some other window managers (fluxbox,awesome,twm) but they all fail to meet my requirements in one way or the other.
 
Old 11-01-2012, 07:44 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,614
Blog Entries: 2

Rep: Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070
Did the error occur with those other WMs? What are your actual requirements, so that we can maybe recommend a different WM if this is Metacity related?
 
Old 11-02-2012, 12:30 AM   #3
ba_kirang
LQ Newbie
 
Registered: Apr 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hi,


Thank you for your reply.

The "misalignment" is happening only when I use metacity, no other WMs.

Other WMs are not suitable because:

1. Inability to start them from ".xinitrc" Or
2. Inability to "auto raise". If I click a button to open another window from the GUI application, the window opens in the background and I have to use "Alt+tab" to bring the window to foreground.
3. Missing "frame"(border) in windows even though the WM is started.
4. Not enough Integration time.

Due to the status of the project and other unknown dependencies, it would be best If I stick to metacity itself. If anyone can suggest a solution to fix the metacity issue, I would appreciate that.

Kiran
 
Old 11-05-2012, 04:26 AM   #4
ba_kirang
LQ Newbie
 
Registered: Apr 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hi,

Metacity is logging this error/warning when the GUI application pops up:

==========================
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0xa00002 ("Application Name")
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
==========================

Can someone help me with this?

I couldnt find a forum dedicated to metacity. If someone can point me to such a forum that would be great.

Thanks
 
Old 11-05-2012, 06:22 AM   #5
ba_kirang
LQ Newbie
 
Registered: Apr 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hi,


This turned out to be a Qt style sheet issue.

Closing
 
  


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
how to make an standalone simple hello world application tamilvanan Programming 9 10-22-2012 05:32 PM
Application are very slow due to lack of Network connection winxandlinx Linux - Networking 2 02-18-2007 11:35 PM
GUI not displaying due to Processor and M/Board changes lekkie Linux - Hardware 1 05-09-2006 10:46 AM
Creating Standalone Application using Octave swifty99uk Linux - Software 0 10-28-2003 04:26 AM


All times are GMT -5. The time now is 10:08 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