[PATCH] make "Open Location" dialog multihead aware
- From: Davyd Madeley <davyd madeley id au>
- To: nautilus-list gnome org
- Cc: desktop-devel-list gnome org
- Subject: [PATCH] make "Open Location" dialog multihead aware
- Date: Sun, 24 Jul 2005 01:55:15 +0800
As per bug #143784 [1]:
Nautilus windows and dialogs are centred on their parent, this
doesn't work when their parent is the desktop, as the desktop spans
all monitors the dialog commonly ends up in the split between
monitors (ie. the centre).
This patch [2] checks to see if the parent NautilusWindow is the
desktop and then repositions the "Open Location" dialog
appropriately based on the monitor that the mouse is currently on.
This patch has not been tested on single monitor systems, however,
if there is a problem, use of the gdk_screen_get_n_monitors() call
might prove useful (ie. only run the code if there is more then one
monitor).
I feel a similar technique could be applied to previously unopened
spatial Nautilus windows, which are opened in the "centre" of the
screen.
Not currently subscribed to nautilus-list, please CC as appropriate.
--d
[1] http://bugzilla.gnome.org/show_bug.cgi?id=143784
[2] http://bugzilla.gnome.org/attachment.cgi?id=49628&action=view
--
Davyd Madeley
Systems Engineer, Bridgeway Consulting
M: 0422 590 883 F: (08) 9490 1418
http://www.bridgewayconsulting.com.au/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]