Commit Graph

21306 Commits

Author SHA1 Message Date
rafspiny 5e7fa42b8c Make some functions static 2024-03-12 07:19:50 -07:00
rafspiny d60a6fd16b Forgot to update reference to renamed enum values 2024-03-12 07:19:50 -07:00
rafspiny 5b042e08e2 Forgot to update reference to renamed enum values 2024-03-12 07:19:50 -07:00
rafspiny fbfd52f679 Forgot to update reference to renamed enum values 2024-03-12 07:19:50 -07:00
rafspiny faa5c6ae84 Functions renaming 2024-03-12 07:19:50 -07:00
rafspiny 095e14f439 Syntax sugar in for loops 2024-03-12 07:19:50 -07:00
rafspiny fc30c75946 More readable strcmp in ifs 2024-03-12 07:19:50 -07:00
rafspiny a139e88811 Enum with all caps values. 2024-03-12 07:19:50 -07:00
rafspiny 43b233348a Other minor changes 2024-03-12 07:19:50 -07:00
rafspiny 4ea8172e51 Correctly defien function with no params 2024-03-12 07:19:50 -07:00
rafspiny 479b83eb81 Other minor changes 2024-03-12 07:19:50 -07:00
rafspiny d2ccd898f9 Use strdup 2024-03-12 07:19:50 -07:00
rafspiny 3c3a1ac603 Removed dbus initialization 2024-03-12 07:19:50 -07:00
rafspiny 608e2fcebf Address calloc failure 2024-03-12 07:19:50 -07:00
rafspiny ff71a650c2 Address linting comments. 2024-03-12 07:19:50 -07:00
rafspiny 1edbc5cca4 Fix icon 2024-03-12 07:19:50 -07:00
rafspiny 7f33315dcd First attempt at integrating convertible module 2024-03-12 07:19:50 -07:00
Carsten Haitzler e10a0d2be1 clock module - fix - free handlers on mod shudtown
@fix
2024-03-06 18:57:43 +00:00
Carsten Haitzler efe2f7b267 wl - put in hardcoded 16x16 image for wl logo if file not found
if someone has removed the wl logo png file or it fails to load - use
a hardcoded low res 16x16 image data set instead of the wl logo. this
way we have a watermark that works so we know it's wayland or not.
2024-03-04 20:18:37 +00:00
Carsten Haitzler ed64f9e0b8 desklock - fix kbd layout set for desklock so it works
e just didn't store the kbd layout - set it up if it is not on desklock
based on layout name stored.

@fix
2024-02-24 20:43:03 +00:00
Carsten Haitzler 5a5059b058 notification - timeout - handling was jut broken - fix
this totally didnt' get timeout was in ms - it mis-handled setting the
value thinking it was  double or float - it wasn't.. this fixes it.

Fixes #63

@fix
2024-02-09 18:09:59 +00:00
Carsten Haitzler 7eea5fb897 fix 2nd pager copy of same zone not updating selected state
this fixes #29

@fix
2024-01-28 12:21:18 +00:00
maxerba 6c5358f4cd Copyright notice update 2024-01-23 21:10:11 +01:00
Carsten Haitzler cc4df8d320 paranoia for silly people - check efl version aty runtime via eina
enlightenment_start checks the efl version and complains if it's too
old. this shoulpd at runtime give some sensible output for shen
someone did somthing very silly. it'll write this to stderr AND to
~/.e-log.log
2024-01-17 18:37:31 +00:00
Carsten Haitzler aa5fbfb1d3 systray - fix re-fill on gadcon re-create e.g. when changing shelf cfg
change shelf config like orientation and systray goes blank. this
fixes it - delays re-fill to after main loop return with 0 sec timer

fixes #53

@fix
2023-12-27 13:57:34 +00:00
Carsten Haitzler 5a493a5594 fix crash on trying to writer to non-writable input method file 2023-12-18 15:38:00 +00:00
Carsten Haitzler 98e9c79246 make xrandr command use an actual option 2023-12-14 07:40:05 +00:00
Andre Schulz 4bd15e3fec mixer: alsa: Handle error from _alsa_card_create()
_alsa_card_create() can return NULL which can lead to a segmentation
fault inside ALSA when NULL is passed to snd_mixer_first_elem() in
_alsa_cards_refresh(). See the following crash dump excerpt:

Thread 1 (Thread 0x7fe64b227780 (LWP 3320) "enlightenment"):
#0  0x00007fe64c2fbd92 in __libc_pause () at ../sysdeps/unix/sysv/linux/pause.c:29
        sc_ret = -514
        sc_cancel_oldtype = 0
        sc_ret = <optimized out>
#1  <signal handler called>
No locals.
#2  list_empty (p=0x20) at /var/tmp/portage/media-libs/alsa-lib-1.2.9/work/alsa-lib-1.2.9/include/list.h:114
No locals.
#3  snd_mixer_first_elem (mixer=mixer@entry=0x0) at /var/tmp/portage/media-libs/alsa-lib-1.2.9/work/alsa-lib-1.2.9/src/mixer/mixer.c:803
No locals.
#4  0x00007fe63b2a376f in _alsa_cards_refresh () at ../enlightenment-0.25.4/src/modules/mixer/lib/backends/alsa/alsa.c:304
        buf = "hw:0\000le.emix.cfg\000C\236:\245U\000\000\035\221.;\346\177\000\000`>[;\245U\000\000\260g\302:\245U\000\000pL[;\245U\000\000ʁ-:\245U\000\000/home/andre/.e/e/config/standard/module.gadman.cfg", '\000' <repeats 710 times>...
        mixer = 0x0
        device_name = <optimized out>
        elem = <optimized out>
        source = 0x0
        sink = 0x0
        err = <optimized out>
        card_num = 0
        tmp_source = 0x0
        tmp_sink = 0x0
2023-09-14 20:22:17 +02:00
Carsten Haitzler d8acc8d563 fix ukrainian lang entry to uk_UA from uk_UK 2023-07-01 19:04:05 +01:00
Carsten Haitzler b775f51c82 Add option to set hidden state or not 2023-06-17 11:56:57 +01:00
Carsten Haitzler 81d7fb15ab exec - store out incremented sutartup id to avoid clashes - fix
@fix
2023-04-17 12:27:33 +01:00
Ross Vandegrift c18c52f36a Avoid using "mips" as a variable
Summary:
"mips" is a gcc system-specific predefined macro on mipsel & mips64el.  This
fixes compilation on those platforms.

References:
- https://gcc.gnu.org/onlinedocs/cpp/System-specific-Predefined-Macros.html
- https://gcc.gnu.org/pipermail/gcc-help/2020-August/139241.html

Fixes T8781

Test Plan: built on a debian mipsel porterbox

Reviewers: raster, devilhorns

Subscribers: cedric, zmike

Tags: #enlightenment-git

Maniphest Tasks: T8781

Differential Revision: https://phab.enlightenment.org/D12096
2023-04-08 21:42:02 -07:00
Nekobit 766360359b xinput: Fix typo, add config check 2023-03-18 01:37:00 -07:00
Nekobit 78470d03d9 xinput: Adjust style 2023-03-18 01:37:00 -07:00
Nekobit 98a9609f8c xinput: Add support for flat mouse acceleration and Hi-Res scrolling
Flat mouse accel is fairly obvious.
Hi-Res scrolling is an option that is useful on certain mice that technically support 'pixel-perfect' scrolling, but still 'click' like regular mice would when you scroll. Some mice are designed to use pixel-perfect scrolling, so keeping it optional is useful.
2023-03-18 01:37:00 -07:00
Carsten Haitzler 0c6b0645bd mixer - ignore Peak detect named out src from pavucontrol
pavucontrol does the same thing e and emixer do - monitor
input/recording sources to show a vu meter to show current input
levels when appropriate. ignore these as they are not actually
recording audio - just monitoring them and thus from a user experience
point of view probably should be ignored.
2023-03-07 08:00:51 +00:00
Carsten Haitzler ef788779f9 evrything - fix handling of broken strings without looping forever
this should fix #20

enlightenment/enlightenment#20
@fix
2023-03-05 09:35:51 +00:00
Carsten Haitzler 1cb02d3480 dpms - fix cases where screensavwr was off but dpms still on
@fix
2023-02-16 22:48:43 +00:00
Carsten Haitzler a6038af68f icon theme - set elm icon theme to same theme as e one ... sync them 2023-02-16 08:28:47 +00:00
Carsten Haitzler 13454ff0bb randr - add some more debug info to log 2023-02-16 08:28:47 +00:00
Carsten Haitzler 72d639d1a6 desklock - fix compile warn after last change (no real bug) 2023-02-12 20:23:56 +00:00
Carsten Haitzler cb2bc1d1c1 desklock - use immediate show for lock on suspend etc.
makes lock more correct and not fade in on lock on suspend

@feat
2023-02-10 22:21:54 +00:00
Carsten Haitzler fd3e4a645d e state - add simple string glob listener callbacks 2023-02-10 08:48:23 +00:00
kikadf e5e3750ce1 Use default way to locale listing on OpenBSD
Listing /usr/share/locale doesn't work, and
already OpenBSD has support for locale.
2023-02-10 00:47:27 -08:00
kikadf 1b6d81a352 Fix hibernate command on OpenBSD 2023-02-10 00:46:40 -08:00
Carsten Haitzler 9882110357 mixer - be explicit on pluse started flag being false
while runtime linking/compiler will make sure these are zero  by
default normally... be explicit.
2023-02-07 09:51:33 +00:00
Carsten Haitzler 42eedd5fe8 randr - fix xrandr output off/on/config gen to not miss outputs 2023-01-23 21:13:58 +00:00
Carsten Haitzler 882261d8e2 odd to miss void for no params - be clear its no params 2023-01-20 14:47:45 +00:00
Carsten Haitzler 21ac62127c state system - add start of it
Why this? A way to have a shared store of "variables" or states that
any part of e or modules can store some simple things in and thus also
broadcast changes to state, listen to changes in state and react.

I am thinking of things like advertising:

  "/power/ac"               = [ true | false ]
  "/power/battery/low"      = [ true | false ]
  "/power/battery/charging" = [ true | false ]
  "/power/state"            = [ "on" | "sleep" ]
  "/screen"                 = [ "on" | "dim" | "blank" ]
  "/screen/locked"          = [ true | false ]
  "/network/online"         = [ true | false ]
  "/network/location"       = "name of network detected"
2023-01-20 14:47:45 +00:00
Carsten Haitzler acb59e1c78 randr - for now don't just suspend when on battery and end up at 0 scr 2023-01-20 14:47:45 +00:00