Restacking x11/Xlib Window


 
Thread Tools Search this Thread
Operating Systems Solaris Restacking x11/Xlib Window
# 1  
Old 01-24-2014
Restacking x11/Xlib Window

I have a full screen top level window (application) on Solaris 10. We have a minimal window manager (DTWM), because of the critical nature of the app. On top of the first application, we have another application with a top level window, that covers the upper left area of the first application. Now, when the first top level application revceives messages as client windows, the seccond top level application (window) disappears into the background. This is standard behavior, but is it possible to squeeze the second top level window between the first top level window and its client(s) programmatically? I tried XLib's XRegonfigureWindow and XRestackWindows, but those fail.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Toggle between xterm window and standard terminal window

Is it possible to toggle back and forth between an xterm invoked from one tty, and a shell invoked from a different tty? I am running Centos 7 with KDE and booting in non-graphic mode. After logging in on the default window (/dev/tty1) , I can then use ALT-F2 to access a new window (/dev/tty2),... (1 Reply)
Discussion started by: rhgscty
1 Replies

2. Programming

Xlib search window by his name

Hello, I just try to get the control of a Window by searching his name. I curretly do that : Window CMD::window_from_name_search(Display *display, Window current, char const *needle) { Window retval, root, parent, *children; unsigned children_count; char *name = NULL; ... (0 Replies)
Discussion started by: Loustak
0 Replies

3. UNIX for Advanced & Expert Users

[Solved] putty+x11:How do I pass X11 display rights to "su"?

I can log into a unix system with Putty. I've set the "X11 forwarding" checkbox, and I've verified that I can display an X11 window back on my laptop. What I need to be able to do is "su" to another uid after logging in and then run something which display a window back on my laptop, with the... (2 Replies)
Discussion started by: dkarr
2 Replies

4. UNIX for Dummies Questions & Answers

X window/X11 basics

Hi all, Can anybody suggest a good resource to know about X/X-window/X11 etc in linux/unix. Introduction and useful commands. Its little confusing to me. thanks in advance! (0 Replies)
Discussion started by: lramsb4u
0 Replies

5. Solaris

Pop-up window using X11

Anyone know of a way to create a pop-up window using X11? I'm not to sure where to start. I just think it would be neat to do. So I was hoping someone out there had documentation on how to go about this, or if I was going to have to write/compile a program to do so. Thank you! Adelsin (8 Replies)
Discussion started by: adelsin
8 Replies

6. UNIX for Dummies Questions & Answers

Newbie needs help with Xlib / X11 programming,dunno who to ask,but you :(

Hi,I'm new here and to Unix also. I'm totall newbie. Here is what I have to do: -Basics of programming user interface with Xlib library -Xlib -Client/Server model of X-Windows system -Example of "Hello world" with button which changes text ,so that when u click displays another... (4 Replies)
Discussion started by: megane16v
4 Replies

7. Solaris

How to set DISPLAY to support X11 window server

I can run xclock from root but not able to run in a user (oracle) I am getting this error during installation of ORACLE-10g (10.2) in Solaris-10 (X86).............when I do ./runInstaller when ever try, getting this error....... DISPLAY not set. Please set the DISPLAY and try again. or... (2 Replies)
Discussion started by: gohappy
2 Replies

8. Windows & DOS: Issues & Discussions

cygwin-x/can't install xorg-x11-f100 & xorg-x11-fnts

Hello All. Really a newbie to Linux/Unix. Trying to get into Linux. Using XP PE currently. Installed cygwin and trying to intall cygwin-x. Everything else is setup nice but i can't seem to install these two packages (without whom xwin won't start) 1. xorg-x11-f100 2. xorg-x11-fnts Tried the... (1 Reply)
Discussion started by: binodbdrchand
1 Replies

9. UNIX for Advanced & Expert Users

Problem with X11 Root Window

At school, on an HP-UX or B.11.11 U 9000/785 system, my X11 root window is always set to 8-bit color, but all the child windows are 24-bit. The problem with this, is any background/wallpaper looks extremely ugly with the 8-bit color. Is there any way to make X starts with 24-bit color root window?... (0 Replies)
Discussion started by: ljfong
0 Replies
Login or Register to Ask a Question
XReparentWindow()														 XReparentWindow()

Name
  XReparentWindow - insert a window between another window and its parent.

Synopsis
  XReparentWindow(display, win, parent, x, y)
	Display *display;
	Window win;
	Window parent;
	int x, y;

Arguments
  display   Specifies a connection to an X server; returned from XOpenDisplay().

  win	    Specifies the ID of the window to be reparented.

  parent    Specifies the window ID of the new parent window.

  x	    Specify the coordinates of the window relative to the new parent.

  y

Description
  XReparentWindow() modifies the window hierarchy by placing window win as a child of window parent.  This function is usually used by a win-
  dow manager to put a decoration window behind each application window.  In the case of the window manager, the new parent window must first
  be created as a child of the root window.

  If win is mapped, an XUnmapWindow() request is performed on it automatically.  win is then removed from its current position in the hierar-
  chy, and is inserted as a child of the specified parent.  win is placed on top in the stacking order with respect to siblings.

  A ReparentNotify event is then generated.  The override_redirect member of the structure returned by this event is set to  either  True  or
  False.  Window manager clients normally should ignore this event if this member is set to True.

  Finally, if the window was originally mapped, an XMapWindow() request is performed automatically.

  Descendants of win remain descendants of win; they are not reparented to the old parent of win.

  Normal  exposure  processing on formerly obscured windows is performed.  The server might not generate exposure events for regions from the
  initial unmap that are immediately obscured by the final map.  The request fails if the new parent is not on the same  screen  as  the  old
  parent, or if the new parent is the window itself or an inferior of the window.

Errors
  BadMatch  parent not on same screen as old parent of win.
	    win has a ParentRelative background and parent is not the same depth as win.
	    parent is win or an inferior of win.

  BadWindow parent is InputOnly and win is not.

See Also
  XCirculateSubwindows(),  XCirculateSubwindowsDown(),	XCirculateSubwindowsUp(),  XConfigureWindow(),	XLowerWindow(),  XMoveResizeWindow(),
  XMoveWindow(), XQueryTree(), XRaiseWindow(), XResizeWindow(), XRestackWindows().

Xlib - Window Manipulation													 XReparentWindow()