dmedvinsky / gsimplecal

Simple and lightweight GTK calendar (BSD license)
http://dmedvinsky.github.io/gsimplecal
Other
198 stars 19 forks source link

Added close_on_mouseleave option #53

Closed proxict closed 1 year ago

proxict commented 1 year ago

With this option, the window will close only when the mouse leaves the calendar window. There is a similar option close_on_unfocus which closes the window when it loses focus. The problem is that the window gains focus when it gets created and when the user first drags the mouse pointer over other windows before reaching the calendar window, the calendar closes. This happens when the window manager is set to automatically focus windows when the mouse pointer hovers over them.

proxict commented 1 year ago

Darn it, I was too quick with the PR as when testing it further, the window receives the leave-notify-event also when moving the mouse over the widgets inside of the calendar window.

EDIT: Hopefully fixed.

dmedvinsky commented 1 year ago

Looks good (for someone who doesn't know much about GTK 😬). Thanks!