Sponsored Content
Top Forums Programming How to override Window Manager placement of windows. Post 302347750 by AOne on Wednesday 26th of August 2009 10:19:00 AM
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.
 

7 More Discussions You Might Find Interesting

1. 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

2. UNIX Desktop Questions & Answers

Window Manager of the ... Choice

Inspired by Window Manager of the Year threads from LinuxQuestions.org 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

3. 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

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. 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

6. 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

7. 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
XConfigureEvent(3)						  XLIB FUNCTIONS						XConfigureEvent(3)

NAME
XConfigureEvent - ConfigureNotify event structure STRUCTURES
The structure for ConfigureNotify events contains: typedef struct { int type; /* ConfigureNotify */ unsigned long serial; /* # of last request processed by server */ Bool send_event; /* true if this came from a SendEvent request */ Display *display; /* Display the event was read from */ Window event; Window window; int x, y; int width, height; int border_width; Window above; Bool override_redirect; } XConfigureEvent; When you receive this event, the structure members are set as follows. The type member is set to the event type constant name that uniquely identifies it. For example, when the X server reports a GraphicsEx- pose event to a client application, it sends an XGraphicsExposeEvent structure with the type member set to GraphicsExpose. The display member is set to a pointer to the display the event was read on. The send_event member is set to True if the event came from a SendEvent protocol request. The serial member is set from the serial number reported in the protocol but expanded from the 16-bit least-significant bits to a full 32-bit value. The window member is set to the window that is most useful to toolkit dispatchers. The event member is set either to the reconfigured window or to its parent, depending on whether StructureNotify or SubstructureNotify was selected. The window member is set to the window whose size, position, border, and/or stacking order was changed. The x and y members are set to the coordinates relative to the parent window's origin and indicate the position of the upper-left outside corner of the window. The width and height members are set to the inside size of the window, not including the border. The border_width member is set to the width of the window's border, in pixels. The above member is set to the sibling window and is used for stacking operations. If the X server sets this member to None, the window whose state was changed is on the bottom of the stack with respect to sibling windows. However, if this member is set to a sibling window, the window whose state was changed is placed on top of this sibling window. The override_redirect member is set to the override-redirect attribute of the window. Window manager clients normally should ignore this window if the override_redirect member is True. SEE ALSO
XAnyEvent(3), XButtonEvent(3), XCreateWindowEvent(3), XCirculateEvent(3), XCirculateRequestEvent(3), XColormapEvent(3), XConfigur- eRequestEvent(3), XCrossingEvent(3), XDestroyWindowEvent(3), XErrorEvent(3), XExposeEvent(3), XFocusChangeEvent(3), XGraphicsEx- poseEvent(3), XGravityEvent(3), XKeymapEvent(3), XMapEvent(3), XMapRequestEvent(3), XPropertyEvent(3), XReparentEvent(3), XResiz- eRequestEvent(3), XSelectionClearEvent(3), XSelectionEvent(3), XSelectionRequestEvent(3), XUnmapEvent(3), XVisibilityEvent(3) Xlib - C Language X Interface X Version 11 libX11 1.6.0 XConfigureEvent(3)
All times are GMT -4. The time now is 01:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy