VirtualBox

Ticket #10277 (new defect)

Opened 2 years ago

Last modified 2 years ago

Windows spawned by XCreateSimpeWindow() are masked in Seamless Mode

Reported by: onsico Owned by:
Priority: major Component: GUI/seamless
Version: VirtualBox 4.0.16 Keywords:
Cc: Guest type: Linux
Host type: Windows

Description

I am connecting to an X Server (which runs on guest linux) from my windows host (using a simple C program that calls XCreateSimpleWindow()). Window spawns on my guest with no problems, but when i enter seamless mode - my window is masked by all other windows on guest (for example: i can't see my window on a blank desktop, to see my window i have to open gedit and maximize it.) I have attached a screenshot which explains the problem.

P.S.: i use the following code on my host to spawn the window on guest:

Display *display = XOpenDisplay("10.0.0.2:0"); 10.0.0.2 - is an address of my guest OS const int screen = XDefaultScreen(display); const Window root = XRootWindow(display, screen); const Window window = XCreateSimpleWindow(display, root, 0, 0, 640, 480, 0, 0, 0); XMapWindow(display, window); XFlush(display);

Attachments

Untitled.jpg Download (240.0 KB) - added by onsico 2 years ago.

Change History

Changed 2 years ago by onsico

comment:1 Changed 2 years ago by michael

Presumably the problem is that you haven't yet set the window manager hints and things on the window yet.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use