eonpatapon / gnome-shell-extension-caffeine

Disable screensaver and auto suspend
GNU General Public License v2.0
552 stars 107 forks source link

Sugestion: Add delay before "auto-enable" turns Caffeine on/off to avoid "bouncing". #27

Open careca1970 opened 10 years ago

careca1970 commented 10 years ago

Nice to have a short delay before switching Caffeine ON/OFF on maximizing/minimizing. Maximizing/Minimizing (forth and back) in a mistake, or when grabbing windows around the workspace, and accidentally triggering "the snap feature" on/off (auto-maximizing/minimizing). In such cases Caffeine switches ON/OFF undesirably. A short delay could introduce a "debouncing" effect, avoiding this effect.

Thanks for very useful extension and valuable support!

eonpatapon commented 10 years ago

Actually maximizing windows shouldn't trigger Caffeine. Maximized and fullscreen apps are not the same.

careca1970 commented 10 years ago

Hi eonpatapon, sorry but I feel as I did not describe my issue fully. Maybe my suggestion isn't meaningful... In fact you are right. The "bounce effect" does not occur when I maximize windows myself, it happens only when the gnome "Aero snap" feature does maximize the windows itself. In this case, caffeine turns "ON" and after short time back "OFF" again from (bounce), remaining then off steadily. When pulling the window back "down" (minimizing window by "Aero snap" mimic), caffeine does NOT get triggered. So the issue happens only on maximizing by "Aero snap". Maybe there is any problem with "signaling" coming from "Aero snap", and it may not be a issue of caffeine. Unfortunately I have no clue how Caffeine nor Gnome "Aero snap" works. Hope you can reproduce this behavior at your side, but anyway if you may need, I can try helping you debugging it.

My system data: $ uname -a Linux xxx.yyyy 3.14.8-200.fc20.x86_64 #1 SMP Mon Jun 16 21:57:53 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux $ gnome-session --version gnome-session 3.10.1 $ tail -n2 ~/.local/share/gnome-shell/extensions/caffeine@patapon.info/metadata.json "version": 19

Thank you!