Awn

Comment 6 for bug 248769

Revision history for this message
dynamotwain (dynamotwain) wrote :

The attached bzr bundle/patch is against trunk and fixes the following:
* Building against GTK with GTK_DISABLE_DEPRECATED defined
* GObject-ify AwnSettings so that AwnMonitor functionality can be merged in
* Merge AwnMonitor and duplicated AwnSettings entries so monitor geometry is only stored in 1 place instead of 3.
* Don't assume the top-left corner of the desired monitor is (0,0) when placing windows
* Set strut values that actually conform to spec (relative to overall screen edge, not monitor edge)
* Remove all force_* settings in favor of one monitor_num setting
* Add a 'monitor number' spinbox to the Bar Appearance tab of awn-manager to update the monitor_num setting
* Automatically update if GTK receives a "monitors-changed" due to screen hotplugging

With these changes, no more algebra is required to calculate unrealistic values for force_width and force_height to get the bar to appear on a second monitor. Nor does it require manual changes if your a laptop user and only occasionally have a external monitor attached.

It does fix setting the the struts for users with multiple monitors of multiple resolutions in a horizontal configuration.

It may or may not fix setting struts for internal edges in metacity or other WMs... but if it does, it's non-standard behavior in the WM and shouldn't be relied upon.