History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GLB-1
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mikael Hallendal
Reporter: Mikael Hallendal
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
GNOME Launch Box

Xinerama (multimon) issues.

Created: 08/Apr/05 10:29 AM   Updated: 26/May/08 11:11 PM
Component/s: None
Affects Version/s: 0.1
Fix Version/s: 0.2

File Attachments: 1. Text File gdk_monitors.txt (1 kb)
2. Text File multimon.patch (0.9 kb)



 Description  « Hide
Comment from: Adam Lydick <lydickaw (at) ruffledpenguin (dot) org>

LB paints itself in the center of the logical screen. This is a bummer
on dual monitors, because the center of the logical screen has a 3cm
air-and-plastic gap that makes it a little difficult to see.

Solution: Look at how gnome-session implements centering their logout
dialog. A quick hack that got things working for me (but is somewhat
lame, because it hardcodes which monitor to use) follows.

(windows_update_background() in lb-window.c)

// broken for multimon
//screen_width = gdk_screen_get_width (screen);
//screen_height = gdk_screen_get_height (screen);

//FIXME: HACK: pick the "default" monitor instead of hardcoding
//NOTE: "geometry is a GdkRectangle
gdk_screen_get_monitor_geometry(screen, 0 /* monitor# */, &geometry);

x = geometry.width / 2 - width / 2;
y = geometry.height / 2 - height / 2;



 All   Comments   Change History      Sort Order:
Jon Wood - [05/May/05 10:50 PM ]
I'm in the process of fixing this bug, just thought I'd let people know. It probably won't be the world's best solution, since I don't have much experience with C, but it should work eventually!

Jon Wood - [05/May/05 10:58 PM ]
Attached an IRC log - I need to go out, but don't want to lose this.

John Stowers - [29/Aug/05 03:34 AM ]
I have attached a patch which I used to correct this issue on my PC. If the user has multiple monitors lb draws itself in the center of the primary monitor, instead of the center of the screen. Hope this helps

John


John Stowers - [29/Aug/05 03:37 AM ]
Hope this fixes the issue for some people

Mikael Hallendal - [29/Aug/05 08:30 AM ]
Is it possible to get it to draw in the center of the current desktop? Not sure if it's possible to get this information but I think that would make sense if it's possible.

Richard Hult - [27/Oct/05 07:49 PM ]
Thanks for the patch! We got another patch a while ago to fix this, which I committed since I wasn't aware of this bug report then.