Visit Our UNIX and Linux User Community

How to override Window Manager placement of windows.

Thread Tools Search this Thread
Top Forums Programming How to override Window Manager placement of windows.
# 1  
Old 08-26-2009
Lightbulb How to override Window Manager placement of windows.

Hello, everyone!

Is it possible to create a window in X11/WM, but override the position Window Manager sets for the window. I'm not sure how to use 'override_redirect' flag, and what to do in order to use it. But the problem with the flag is also that it probably will disable all decorations given by the WM. Actually I just need to be able to set the windows position programmatically, while the WM puts every window (except popups) at the center of the display. I can only move windows with mouse and it's not the best idea to emulate mouse events to move windows.
# 2  
Old 08-26-2009
AFAIK, override_redirect should only be used with menus, tool tips and the like.

Which toolkit are you using?
# 3  
Old 08-26-2009
It is indeed possible to do so. The Simple Directmedia Layer is a frequently valuable code resource just for containing so much generic code covering so many different platforms, and one of the things it does is check an environment variable to see if it should alter where it puts the window...

Here is the source code for SDL_x11video.c, please check out the code in X11_SetSizeHints, it seems to use XMoveWindow among other things.

Previous Thread | Next Thread
Test Your Knowledge in Computers #277
Difficulty: Easy
Solaris is a version of UNIX System V Release 4 (SVR4), jointly developed by Sun and AT&T, and was licensed by Sun from DEC to replace SunOS.
True or False?

7 More Discussions You Might Find Interesting

1. Fedora

Window Manager

Hi guys, I want to get back to my old days and re-obtain my unix skills, I remember I installed a window manager wmii / wmii2 /mwm on my debian and started to learn unix/linux and now after some years not touching it and having to deal with gnome on redhat (because of my work) I feel like very... (6 Replies)
Discussion started by: messi777
6 Replies

2. Red Hat

Window manager on Fedora

Hi eveybody, I want to install fedora on my personal laptop, but I dont want to use any graphical desktop environment, this way i will force myself to learn more. I want to install wm2 which i used to work with it on debian a couple of yeras ago, so is there any instruction that how I can do this?... (3 Replies)
Discussion started by: messi777
3 Replies

3. UNIX Desktop Questions & Answers

Slimmest Window Manager

Hi Which is the absolutely slimmest window manager Window Manager? THX (3 Replies)
Discussion started by: ccc
3 Replies

4. Windows & DOS: Issues & Discussions

Windows Active Network Connection Override

Hi All, I use two Network Connections at work: Wireless and LAN. Wireless network has no limitations, but LAN internet has a web filter. I start a download using my Wireless conn. (At this point, LAN is disabled) But when I activate my LAN connection my download stops immediately. LAN... (4 Replies)
Discussion started by: kalavkalav
4 Replies

5. Shell Programming and Scripting

Kinda a noob: Automatic window sizing and placement

I am attempting to create a script that runs automatically upon logging in and opens and places windows in appropriate places. I have the script running such that it starts during login, but I cannot get things how and where I want them. This should be relatively simple, I just can't figure it out... (7 Replies)
Discussion started by: wydileie
7 Replies

6. UNIX Desktop Questions & Answers

Window Manager of the ... Choice

Inspired by Window Manager of the Year threads from Like these: 2002 | 2003 | 2004 | 2005 | 2006 I wonder what WMs are used by UNIX people ... People sometimes select diffrent WMs for (old and slow) laptop and (overpowered) workstation, that is why poll allows multiple... (8 Replies)
Discussion started by: vermaden
8 Replies

7. Shell Programming and Scripting

Java Desktop Icon - which window manager?

I have a Java app that is deployed on several Unix systems. Until recently, starting it from the command line was no problem. A recent requirement is to deliver a desktop icon that will launch the app. I have launched apps with icons before, but that was when I knew exactly which window... (1 Reply)
Discussion started by: herbmiller
1 Replies

Featured Tech Videos