Wingpanel doesn't set proper struts

Bug #826853 reported by Danielle Foré
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Wingpanel
Fix Released
Critical
Fabian Thoma

Bug Description

In the GTK3 wingpanel, struts aren't set properly taking into account menuitem spacing. This means that depending on your theme, your windows will go underneath the panel.

Also in multimonitor setups the struts may be placed on the wrong screen

Changed in wingpanel:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
David Gomes (davidgomes) wrote :

Here's some code that might come in handy (I used it in another Vala program):

Gdk.property_change(this.get_window(),
                                Gdk.Atom.intern("_NET_WM_STRUT_PARTIAL", false),
                                Gdk.Atom.intern("CARDINAL", false),
                                32,
                                Gdk.PropMode.REPLACE,
                                (uchar[]) this.struts,
                                this.struts.length);

            Gdk.property_change(this.get_window(),
                                Gdk.Atom.intern("_NET_WM_STRUT", false),
                                Gdk.Atom.intern("CARDINAL", false),
                                32,
                                Gdk.PropMode.REPLACE,
                                (uchar[]) this.struts,
                                this.struts.length);

Changed in wingpanel:
milestone: none → 0.1-alpha
Changed in wingpanel:
importance: High → Critical
description: updated
Changed in wingpanel:
assignee: nobody → Fabian Thoma (agent00tai)
Revision history for this message
Fabian Thoma (fabianthoma) wrote :

Wingpanel now is in the same location it's struts are, though wingpanel may still differentiate in height, this still needs to be fixed

Changed in wingpanel:
status: Confirmed → In Progress
Changed in wingpanel:
status: In Progress → Fix Committed
Changed in wingpanel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.