[SOLVED] Standalone GUI application misaligned or shifted due to metacity
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Standalone GUI application misaligned or shifted due to metacity
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.
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.
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.