Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rounded corners don't work with widthtype=request #6

Closed
RichJack opened this issue Dec 3, 2015 · 2 comments
Closed

Rounded corners don't work with widthtype=request #6

RichJack opened this issue Dec 3, 2015 · 2 comments

Comments

@RichJack
Copy link

RichJack commented Dec 3, 2015

If you set the widthtype=request sizing option and roundcorners=true then the panel does not appear at all. Round corners do work if I specify the width in pixels or percent.

This is with the devel branch on Ubuntu 14.04.

Here is my simple config:

Global {
    edge = bottom
    allign = right
    xmargin = 12
    ymargin = 5
    widthtype = request
    width = 15
    height = 35
    transparent = true
    tintcolor = #000000
    alpha = 160
    setdocktype = true
    setpartialstrut = true
    autohide = false
    heightWhenHidden = 2
    roundcorners = true
    roundcornersradius = 7
    layer = above
    MaxElemHeight = 24
    setlayer = false
}
Plugin {
    type = space
    config {
        size = 2
    }
}
Plugin {
    type = tclock
    config {
        foreground = "#ffffff"
        ClockFmt = <span font="Roboto 10" color="white"><b>%H:%M</b></span>
        TooltipFmt = %A%n%d %B %G
        ShowCalendar = true
        ShowTooltip = true
    }
}
Plugin {
    type = space
    config {
        size = 13
    }
}
Plugin {
    type = tray
}
Plugin {
    type = space
    config {
        size = 5
    }
}
aanatoly added a commit that referenced this issue Dec 4, 2015
aanatoly added a commit that referenced this issue Dec 4, 2015
[#6]
The bug is this. If `request` width was set, starting width is 1.
If `round corner` was set, spacing around main box is greater then 0.
In this situation gtk2 generates one configure event less, which make
panel's state machine never reach a `show all` state, so panel remains
unmapped.

I can't understand why it so, so I just added a workaround - extra show
event.
@aanatoly
Copy link
Owner

aanatoly commented Dec 4, 2015

done, see develop branch

@aanatoly aanatoly closed this as completed Dec 4, 2015
@RichJack
Copy link
Author

RichJack commented Dec 4, 2015

Brilliantly fast work again! Just tested and works great. This is fabulous!
On 4 Dec 2015 1:05 am, "aanatoly" [email protected] wrote:

Closed #6 #6.


Reply to this email directly or view it on GitHub
#6 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants