calo001 / luna

📆 Calendar Widget for Linux desktop
GNU Affero General Public License v3.0
29 stars 6 forks source link

Add the ability to constrain widget to a single desktop #14

Open eljefuri opened 5 years ago

eljefuri commented 5 years ago

Generally speaking, on non-Elementary operating systems I like to constrain widgets to specific virtual desktops for specific purposes. It's a bit unclear to me if this fits with Elementary design guidelines for widget-type apps, but I would like to be able to use Luna similarly. Right now it displays on all possible virtual desktops. Thank you for your consideration.

calo001 commented 5 years ago

At the moment elementary shows the same widgets in all desktops, apparently they are not yet very flexible with that. I could do a little research, to see if I can find something.

Suzie97 commented 3 years ago

@calo001 you can use this property https://valadoc.org/gtk+-3.0/Gtk.Window.stick.html. I use it in my app https://github.com/Suzie97/epoch/blob/5bbbeb22188a7589d135ea441b27350de019b2f4/src/MainWindow.vala#L99.

https://user-images.githubusercontent.com/68198116/131396885-320a8fcf-3a74-4bc4-a6a0-59febfba5a80.mp4

Something like a switch to toggle this setting seems like the way to go.