dmedvinsky / gsimplecal

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

Not playing nicely with autohide tint2 #21

Closed MightyPork closed 10 years ago

MightyPork commented 10 years ago

I'm having some problem with this calendar.

It works nice with normal tint2, but when I enabled panel_autohide and few other settings, the calendar is opened over tint2 panel and stays open when tint2 closes.

I understand that this is the correct and probably expected behavior, but it just feels clumsy. I'm also aware of the strut_policy trick, but I want my tint2 panel to open over the windows.

I propose that there be a close button, or at least some shortcut, so you can dismiss the calendar when no longer needed, without having to open tint2 again. [edit: Now I found you can close it with ESC, but only when the calendar has focus, which it doesn't get after opening]

Or, now thinking of it, a good idea might be to close the calendar by middle-click.

What do you think?

gsimplecal1 gsimplecal2

dmedvinsky commented 10 years ago

It works nice with normal tint2, but when I enabled panel_autohide and few other settings, the calendar is opened over tint2 panel and stays open when tint2 closes.

You can offset the gsimplecal position using mainwindow_xoffset and mainwindow_yoffset config options so that it's not opened over tint2.

I'm also aware of the strut_policy trick, but I want my tint2 panel to open over the windows.

By default gsimplecal is opened on top of other windows, but you can put it in the usual stack by setting mainwindow_keep_above to 0 in your config.

I propose that there be a close button, or at least some shortcut, so you can dismiss the calendar when no longer needed, without having to open tint2 again.

Close button will clutter the interface, in my opinion. I'm no designer so I don't see how it might be done elegantly. What you can do, is to set mainwindow_decorated to 1 in your config, so that your window manager decorates the gsimplecal window, adding the default title bar with minimize/close/whatever buttons it is configured to draw (well, if your window manager does that at all).

[edit: Now I found you can close it with ESC, but only when the calendar has focus, which it doesn't get after opening]

You can also use ctrl-w and ctrl-q, which are somewhat standard shortcuts for closing everything in Linux.

Also, please do read man gsimplecal for more info on keyboard shortcuts and config options. It should be packaged with the binary or if you did manual install. In case it isn't, here's the source code for it.

Or, now thinking of it, a good idea might be to close the calendar by middle-click.

Well, I think this only works for tabbed interfaces, where this is standard behaviour to close tabs by mid-click. For non-tabbed window this would be counter-intuitive.

Does any of above help you?

dmedvinsky commented 10 years ago

Apparently, the OP doesn't care anymore.