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

[BUG] Calendar auto returns to current date when changing month or year #1087

Open
3 tasks done
NicolasMonta1807 opened this issue Apr 25, 2024 · 0 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@NicolasMonta1807
Copy link

Checklist before submitting an issue

  • I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • I have specifically verified that this bug is not a common user error
  • I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

When displaying eww calendar (cal) widget, it displays correctly but when clicking on next/previous month or year, it returns to display current date after a second.

2024-04-25 10-32-09

Reproducing the issue

  • Toggle calendar widget
  • Click on next or previous month
  • Click on next or previous year

Expected behaviour

  • Stay on selected month or year without

Additional context

My current widget configuration

(defwidget divider []
  (box :class "divider"
       :orientation "v"
       :space-evenly true)
)

(defwidget time []
  (box :class "timebox" :orientation "v" :space-evenly false
    (box :class "time-container" :orientation "h" :space-evenly false :halign "center" :valign "center"
      (label :class "content" :text "${formattime(EWW_TIME, "%H")}")
    (divider)
      (label :class "content" :text "${formattime(EWW_TIME, "%M")}"))

    (box :class "date-container" :orientation "h" :space-evenly true :halign "center"
      (label :text "${formattime(EWW_TIME, "%A, %d %B")}"))
))

(defwidget cal []
  (box :class "cal-box"
       :orientation "v"
       :space-evenly false
    (calendar :class "cal"
              :day {formattime(EWW_TIME, "%d")}
              :month {formattime(EWW_TIME, "%m")}
              :year {formattime(EWW_TIME, "%Y")}
    )
  )
)

(defwidget date []
  (box :class "date"
       :orientation "v"
       :space-evenly false
    (time)
    (cal)
  )
)

(defwindow date
  :geometry (geometry :x "0%" :y "8%" :anchor "top center")
  :wm-ignore true
(date))

@NicolasMonta1807 NicolasMonta1807 added the bug Something isn't working label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant