-
-
Notifications
You must be signed in to change notification settings - Fork 703
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
Updated sway-hide work to the latest master #1241
Changes from 1 commit
013bfb9
0840184
0e32cff
4ecb22b
4ec1718
551973a
2253f3e
f1cd85f
af0b182
d427a5b
3b15645
979a478
92fb316
e2590fc
13fbf81
1c7133c
564e231
2e28531
208351c
24a8e85
11337dc
00ca332
0aecb78
6c3b7e4
c11aecd
73de008
09da1f0
8549996
55ff12a
e276e61
c502e25
cf2312f
48f1a8f
d9de7c4
0cee530
3e21eb8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -594,15 +594,10 @@ auto waybar::Bar::setVisible(bool nvis) -> void { | |
visible = nvis; | ||
if (!visible) { | ||
window.get_style_context()->add_class("hidden"); | ||
window.set_opacity(0); | ||
} else { | ||
window.get_style_context()->remove_class("hidden"); | ||
window.set_opacity(1); | ||
} | ||
setExclusiveZone(width_, height_); | ||
if (!use_gls_) { | ||
wl_surface_commit(surface); | ||
} | ||
wl_surface_commit(surface); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Extraneous |
||
} | ||
|
||
auto waybar::Bar::toggle() -> void { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are fixing the symptom and also breaking existing features (show/hide by signal).
set_opacity
should not fail on a correct visible Gtk window. The only cases of crash I can imagine without looking at the backtrace are when the window is not yet initialized or already destroyed.Can you try checking
window.get_realized()
orwindow.get_mapped()
right after setting thevisible
property?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry by introducing breaking changes, that was not my intention. I will reset it to the current master branch implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reset the changes to the setVisible function. Calling
get_realized
orget_mapped
did not make a difference.The following error occurs when
set_opacity
is in the function and is used when the modifier key is pressed.In my configuration, I have a transition on the
opacity
property. Could it be possible that this conflicts to each other?