Bug 50436 - Remote VM windows are visible
Summary: Remote VM windows are visible
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VE (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux-GTK
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Srimanth CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2004-01-22 17:37 EST by David J. Orme CLA
Modified: 2011-06-13 11:38 EDT (History)
5 users (show)

See Also:


Attachments
Screenshot of remote vm windows on OS X. (132.52 KB, image/jpeg)
2004-09-28 15:48 EDT, Jeff Myers CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David J. Orme CLA 2004-01-22 17:37:20 EST
Window manager is KDE's window manager; KDE 3.1 (Debian Testing)

When the remote VM creates its windows, they are not successfully hidden
off-screen, but rather clutter the current screen.

Idea: If we're going to use a separate virtual console to hide the SWT windows,
maybe this would be the best way to handle JFC on X-Windows rather than trying
to deal with all the permutations of window managers out there.
Comment 1 David J. Orme CLA 2004-08-04 12:34:31 EDT
BTW, this is still true in M2.
Comment 2 Jeff Myers CLA 2004-09-28 15:48:11 EDT
Created attachment 14849 [details]
Screenshot of remote vm windows on OS X.

This is also a significant issue on OS X.  The remote vm windows show up on
screen in the top left, and cannot be completely dragged off screen.  Also each
remote vm, including the beaninfo vm, shows up on the Dock (the taskbar)  On
the bottom of the screenshot there's three white papers with Java cups on them.
 The first is the runtime environment, but the other two are the beaninfo vm
and the editor's vm.
Comment 3 Srimanth CLA 2005-05-09 17:35:09 EDT
Just to summarize - Unfortunately placement of windows in X is completely upto
the Window Manager that X uses. So GTK, KDE, Fvwm, Twm, and so on... all can
completely override any set locations one does on a Window. Twm is the most
extreme - by default it asks the user to manually drop-size any created window,
and this includes those created on the remote vm. 

-------------------------

tweaking window managers:
Unfortunately SWT doesnt offer any gateways to the Window Manager. They are not
to be blamed as I think this is a generic problem with X based apps themselves.
If we wanted to code something specific to a window manager, we would have to
dive into native code to talk to the Window Manager.

---------------

hidden X server:
We did implement this solution in the beginning where would start in the
background :
(1)Xvfb server 
(2)Xnest server inside the Xvfb of (1) [SWT applications were crashing for some
reason in Xvfb directly]
(3)twm/fvwm/fvwm2/.. window manager (whichever was found first)
Then the remote VMs would be launched with the inner Xnest as the target. 

This however had some issues - Swing property editors and bean customizers lived
on the remote VM, and becuase they come from beaninfo which is launched on the
remote VM, there is no way of telling a Swing Window to open on display so and
so. Hence the property editors open up in the hidden X server.
Also starting an X server needs to be done carefully - authentication must be
done correctly so that others dont get access to the content being developed. 
Also with so many flavors of unix/linux, there is no standard way of figuring
out the X server, window manager etc.
Comment 4 Yves YANG CLA 2010-03-08 23:15:07 EST
Another idea is to use the new feature of SWT: Shell's alpha.
Comment 5 Yves YANG CLA 2010-03-09 04:55:13 EST
(In reply to comment #4)
> Another idea is to use the new feature of SWT: Shell's alpha.
It seems it doesn't work on all linux.
Comment 6 Yves YANG CLA 2010-06-02 19:43:57 EDT
A solution of using alpha is committed.