mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
fix(popup): incorrect pos when resolution changes
Popups will now instantly reposition themselves to be correctly placed on resolution change. This includes orientation and scale changes. Fixes #610
This commit is contained in:
parent
5001295d7c
commit
2aa55d8d66
4 changed files with 47 additions and 11 deletions
|
@ -86,6 +86,8 @@ macro_rules! try_send {
|
|||
/// ```
|
||||
#[macro_export]
|
||||
macro_rules! glib_recv {
|
||||
($rx:expr, $func:ident) => { glib_recv!($rx, ev => $func(ev)) };
|
||||
|
||||
($rx:expr, $val:ident => $expr:expr) => {{
|
||||
glib::spawn_future_local(async move {
|
||||
// re-delcare in case ie `context.subscribe()` is passed directly
|
||||
|
@ -122,6 +124,8 @@ macro_rules! glib_recv {
|
|||
/// ```
|
||||
#[macro_export]
|
||||
macro_rules! glib_recv_mpsc {
|
||||
($rx:expr, $func:ident) => { glib_recv_mpsc!($rx, ev => $func(ev)) };
|
||||
|
||||
($rx:expr, $val:ident => $expr:expr) => {{
|
||||
glib::spawn_future_local(async move {
|
||||
// re-delcare in case ie `context.subscribe()` is passed directly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue