Commit Graph

21326 Commits

Author SHA1 Message Date
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

#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
Carsten Haitzler 5c4f26f251 power - add some debug printfs for info on what is going on 2023-01-20 14:47:45 +00:00
Carsten Haitzler 53a21b1b0d mixer - add params to allow increase/decrease by a given percentage
now can pass a value like 1 or 2 or 3 to go up 1, 2 or 3% instead of
the default (with no params) of 5%
2023-01-20 14:47:45 +00:00
Carsten Haitzler e584097d45 backlight - fiddle some to try make backlight work better 2023-01-20 14:47:45 +00:00
Carsten Haitzler 239d989e59 randr - fix xrandr cmdline gen to turn screens off too 2023-01-20 14:47:45 +00:00
Carsten Haitzler 913b7d701a desklock - dont care if we suspend or not when we run lock/unlock apps
@fix
2022-12-29 12:13:27 +00:00
Carsten Haitzler 5a6fb2450c music control - dont add another desklock handler if one is already
@fix
2022-12-29 12:05:48 +00:00
Carsten Haitzler 6cca3f77e8 ibar - kill off ibar not in order icon if last window for exe goes away
@fix
2022-12-12 19:52:46 +00:00
Carsten Haitzler 6122bf24bb client - handlie class names with a space and guess first word as dsktp
stolen idea from moksha - wrote it differently :)
@feat
2022-12-12 19:03:14 +00:00
Carsten Haitzler a6c68aaf5e blanking/screensaver/dpms - in x poll 10s and force blank settings
so some apps/clients mess with screensaver/blanking/dpms behind e's
back. work around this - every 10 sec poll and check (ugly) and if
things are nto set as they should be ... force them to be set that
way. may lead to fights over this but too many people complaining
about steam or other apps messing with this.
2022-12-09 08:44:59 +00:00
Christopher Michael 5ccfb44404 wl_drm: Fix formatting
You know...If we actually enforced our code formatting rules before
commit, then I could be saving a lot of time by not having to make a
bunch of formatting commits just so code is readable :/

NB: No functional changes
2022-12-07 07:00:05 -05:00
Carsten Haitzler a8f174e6c7 dbus - fix some ref/unref's for conns
@fix
2022-11-21 08:28:23 +00:00
Carsten Haitzler bcf795d47f x11 comp randr - allow/use xrandr cmdline for screen cfg
Something has changed in x where now rotated displays if you have
multiple screens don't vcome up right - an alternate for now is to run
xrandr commandline if it exsts. Not stricly a fix - a workaround.
2022-11-21 08:28:23 +00:00
maxerba 7d21b19347 Updating french translation 2022-11-20 09:23:10 +01:00
Carsten Haitzler e4cfb3c50c notification - fix crash if clicking close while close anim happens
@fix
2022-11-19 14:27:27 +00:00
Carsten Haitzler 2386831529 notification - stop allocating wrong struct type for noti actions
the structs size was bigger so it didnt cause any real problem other
than allocating too much mem. this fixes that
2022-11-19 14:27:27 +00:00
Carsten Haitzler 1a58e0e582 procstats - delete callbacks when client is deleted
evas object may still be around and call callbacks still registered
when client sis del'd - so remove callback in client delete in
procstats.

@fix.
2022-11-06 09:39:16 +00:00
maxerba 38178d8c46 Updating portuguese and italian translations 2022-10-30 14:45:18 +01:00
maxerba 5d49dceb36 Updating french translation 2022-10-27 13:11:10 +02:00
Marcel Hollerbach 928cf22f3e fix error message 2022-09-16 01:36:53 -07:00
Marcel Hollerbach f1d43c42a3 e_pointer: try to be sane with x11 and wl
wl does not have fallback rendering, therefore we always fallback to
default. In x11 we fallback to x11 rendering the cursor.

This should logically now not result in the cursor canvas beeing
deleted.
2022-09-16 01:36:53 -07:00
Marcel Hollerbach 5cc6f31035 e_pointer: do not call x11 setup when on wl path 2022-09-16 01:36:53 -07:00
Marcel Hollerbach 9778dc9738 more output 2022-09-16 01:36:53 -07:00
Carsten Haitzler 319b307c59 enlightenment_system - harden - no sysactions.conf - deny all actions 2022-09-15 15:17:53 +01:00
Carsten Haitzler cc7faeccf7 enlightenment_sys - fix security hole CVE-2022-37706
https://github.com/MaherAzzouzi/CVE-2022-37706-LPE-exploit

fixes that.
@fix
2022-09-15 14:38:21 +01:00
Carsten Haitzler fe0945600a win - shapes - set pass events if we have shaped wins but no rects
could be an EMPTY set of input rects but shaped still... so pass
events on the comp obj.

fixes recordmydesktop

@fix
2022-09-11 15:35:54 +01:00
Carsten Haitzler 2e30f391fb notification - fix property name for suppress sound 2022-09-09 09:40:38 +01:00
Carsten Haitzler 05e150ad43 e wl - force gl for wl mode now due to kernel breaks
also make session file do this by default for wl mode.

@fix (work around kernel changes?)
2022-08-26 08:53:03 +01:00
Christopher Michael a5d004a49b e_int_client_prop: Fix ICCCM/NetWM dialog issues
Make this dialog resizable for reading longer text (window titles,
etc). Also, fix the layout silliness that was going on by aligning the
table entries properly.

This dialog looked like crap :( Let's fix that :)
2022-08-20 11:12:00 -04:00
Carsten Haitzler 2294ea9f8a update id - use longer sha1 hash for id 2022-08-20 08:51:50 +01:00
Carsten Haitzler 3c46a6796a blanking block menu - show more info like reason. 2022-08-09 09:25:10 +01:00
Carsten Haitzler 88d7e3b836 screensaver blanking dbus api - also support /ScreenSaver path 2022-08-09 09:19:19 +01:00
Carsten Haitzler aaf317b61d mesgbus - fix nukll name dbus string send
This fixes #11
2022-08-01 17:11:42 +01:00
Carsten Haitzler 225cbac56f watchdog - fix size of ping seq buffer entries 2022-07-20 15:53:56 +01:00
Carsten Haitzler bea94314bd allow multiple mimes and actions on files in efm 2022-07-20 15:36:30 +01:00
Carsten Haitzler db3ea64dd3 terms - expand fallback list of term desktops 2022-07-05 13:06:21 +01:00
Carsten Haitzler c2869268d8 term list - move to a single file to list possible terminal desktops 2022-07-05 12:48:19 +01:00
Carsten Haitzler 5980468f7f enlightenment_open - handle Terminal=true properly not just scheme
This makes termina-ltrue launch properly from enlightemnent_open as
you might expect as it works from core e already when it launches/

@fix
2022-07-05 12:34:58 +01:00
Carsten Haitzler daabedaac1 execution - add more terminal desktops to fallback list 2022-07-05 11:56:38 +01:00
Carsten Haitzler 130535af97 win - first map - fix energyxt unmap bug by wiping ignore unmap
For some reason I have yet to divine we don't get an initial unmap
event due to the reparent of the energyxt dialog windows and the
"ignore that first unmap" flag does not get cleared because it doesn't
happen. later when the dialog is withdrawn {9unmapped) this is ignored
then when you close the dialog... thus keeping it around as far as e
is concerned.

so to fix this - add a small timeout to clean this flag after a
show/map.

@fix
2022-07-05 09:25:35 +01:00
Carsten Haitzler 2bc9efc261 e sound - forgot to call init - call init 2022-06-18 12:24:41 +01:00
Carsten Haitzler 2b095b67d1 notification - play sound samples and advertise it in caps 2022-06-18 12:23:02 +01:00
Carsten Haitzler 91e797eab7 add simple sound play api to play samples 2022-06-18 12:20:05 +01:00
Carsten Haitzler b312bb3aa6 notifications - send signals for cateogry and urgency 2022-06-18 10:09:40 +01:00
Carsten Haitzler cdad184547 notification module - handle misnamed desktop files e.g. firefox 2022-06-18 09:35:51 +01:00
Carsten Haitzler bfd175e985 notification - remove unused func 2022-06-18 09:26:52 +01:00
Carsten Haitzler b23eedae98 notifications - extend to support actions, links and img tags
we didn't support enough of noktifications to make everyone happy -
this is why ffox, chrome etc. did their own notification windows and
didn't use e's notifications. we now advertise doing everything. we
say w edo sound though don't.... will add that later, but this now
means we really do a lot more and thus pushes these other
notifications into e's notifications so we're much better now and this
annoyance i have noticed is now gone.

@feat
2022-06-18 00:46:12 +01:00
Carsten Haitzler 7dcf43051f watchdog - enable. it seems to work fine for me... and that's good. 2022-06-16 15:45:29 +01:00
Carsten Haitzler dbcc56014c fix move to defines for msgbus dbus services for iface/core 2022-06-16 15:45:03 +01:00
Simon Tischer c823c9e97c remove unused 'restore default bindings', default are none bindings 2022-06-15 16:11:46 +02:00
Simon Tischer f0470e0cfd remove unused 'restore default bindings', default are none bindings 2022-06-15 16:10:17 +02:00
Carsten Haitzler 9b0379693d watchdog (currently not used) - fix alloc of right sized ping buf 2022-06-08 11:48:13 +01:00
l05o dceb969857 e-remote - added -window-sendtodesktop 2022-06-04 13:29:16 +01:00
Carsten Haitzler f374da2ef0 sys - add support for logind/systemd lock/unlock dbus api's
@feat
2022-06-03 11:46:34 +01:00
Carsten Haitzler 60d94f771c e comp - fix noisy debug printf due to previous fix
removes noise from 4c6dd08e25

@fix
2022-06-03 11:06:28 +01:00
Carsten Haitzler fc13afced0 add support for org.freedesktop.ScreenSaver dbus inhibit api
this also then can list the inhibitors in a blanking block submenu of
the main menu = select one to remove it as a blocker...

@feat
2022-06-02 18:50:00 +01:00
Carsten Haitzler 5e793df529 msgbus - tidy up code a bit preparing to expand 2022-06-02 10:02:17 +01:00
Carsten Haitzler c6612a7d8a dbus - move service strings to defines completely 2022-06-02 09:24:24 +01:00
Carsten Haitzler 0d0c49e616 shot - allow escape to escape the shot dialog 2022-05-23 17:35:28 +01:00
Carsten Haitzler 422c0b6765 efm - support system provided desktop files for actions
right clikc -> actions -> ... here

you might want desktop files that have

X-Enlightenment-Action-Mime=inode/directory

in them - then they will be included in that menu and whatever is
executed is passed the dir when run as an argument. example:

[Desktop Entry]
Type=Application
Name=Dir xmessage
Exec=xmessage
Icon=video_player
NoDisplay=true
X-Enlightenment-Action-Mime=inode/directory
2022-05-20 13:24:35 +01:00
Carsten Haitzler cfefb25647 remove tabs and replace with spaces in printf's in main 2022-05-19 19:16:42 +01:00
Carsten Haitzler 0ac04f0545 fix enlightenment help and version optiosn to exit after print
@fix
2022-05-19 19:15:55 +01:00
Carsten Haitzler 4c6dd08e25 gtk frame porp change - if deleted for an existing csd app then adjust
assume it went to 0 size if removed and already a csd frame window
which is what chomium does going fullscreen - i didnt see this as i
used chromium with system titlebars not its own.

@fix
2022-05-19 18:08:51 +01:00
Carsten Haitzler 877fde5eaa e comp wl - fix warning for uninit var
actually code path wouldn't care, but this silences a warning

@fix
2022-05-18 13:03:48 +01:00
Carsten Haitzler d869db87ce popup - simplify buffer alloc for popup body and silence warning
@fix
2022-05-18 12:58:23 +01:00
Carsten Haitzler 7c6adbd6fe open - fix warning with possible uninitted var
@fix
2022-05-18 12:58:19 +01:00
Carsten Haitzler 51e09f2a77 e config - use new eet_sync_sync to ensure data is synced to disk
sync data before the rename - ensure it is on disk first with new eet
func.

@feat
2022-05-16 14:00:22 +01:00
Carsten Haitzler 027a810e84 e config - fix config fallback handling - it was broken
loaded the wrong filename pattern due to a change i made ages to it
from file.N.cfg to file.cfg.N.

@fix
2022-05-16 13:59:29 +01:00
Carsten Haitzler a1600a137f client evas objects - fix - dont use precise for shaped input
shaped input doesnt affect or make custom copies of pixel data, thus
precise inside can't work (it can only work if the pixel data is local
- thus textur efrom pixmap is not going to produce valid data thus...
you get the drift). this fixes some odd focus/event things with some
windows that use shaped input only

@fix
2022-05-14 23:13:06 +01:00
Carsten Haitzler 5cf747d45d wayland support - add watermark and bug message and pause
this will clearly alert a user they are using e in wayland mode. this
is needed as there seems to be far too much confusion if e is in
wayland or not and when it is people having issues. this makes sure
e's wayland session desktop also has the label in it so it's clear etc.
2022-05-13 20:36:58 +01:00
Carsten Haitzler 5ad1680a7d e nice/pri change - centralise to util code
also getrlimit to know if we can lower nice level, you will want
something like:

*                -       nice            0

in /etc/security/limits.conf to allow for users to both raise and
lower nice level up until this limit (ie not negative nice levels).

perhaps enlightenment_system needs to do this...
2022-05-13 20:36:58 +01:00
Carsten Haitzler c8b1077de6 gadcon - fix disabled items... this is a radio and switches a/b/c ...
just because an item is not the selected one does not mean it should
be disabled. that is not how radios work. you choose 1 of n menu
items... only items you should NOT select (are not available for
selection) should be disabled.

@fix
2022-04-27 14:51:55 +01:00
Alastair Poole b413ee5d03 procstats: Handle e_client fullscreen requests.
Add an event handler for E_CLIENT_FULLSCREEN. Remove the client,
destroying the popup and icon region.

This resolves the issue where a client fullscreen request would
leave a rogue icon region and popup if switching to full screen
with some applications.

@fix T8996
2022-04-25 15:21:19 +01:00
Carsten Haitzler 582cbf8af8 e config - remove upgrade blocks for luncher + sysinfo
these are not even around so... dont enable them if going from a very
old cfg

@fix
2022-04-15 11:03:15 +01:00
Carsten Haitzler d24370afb6 touchpad input synaptics - fix tap to click props to work
if the driver if synaptics tap to click didnt work. this fixes that.
it didn't get the property values right in the "bitmask" enabling
buttons.

@fix
2022-04-13 15:21:38 +01:00
Carsten Haitzler 7e6736e743 shot - be clear about the shot uploads being unecrypted and available
we were clear, but just to be sure - tell people more expicitly that
it's all totally out-there-public data...
2022-04-12 13:16:25 +01:00
Carsten Haitzler 1fe64f8b01 focus action - raise/unshade/uniconify on focus dir/next/prev action
it's not right that windows stay shaded, iconified or stacked below
when you use a binding to switch focus like "focus prev" to cycle just
with a plain key. this fixes that

@fix
2022-04-11 12:29:14 +01:00
Carsten Haitzler ff90c852a7 ptr - fix cursor getting stuck in resize after blanking
i now saw this... i don't know why now... and consistently. fixed.

@fix
2022-04-07 22:17:43 +01:00
Carsten Haitzler 19724dc3e8 pointer - null out deleted strings
avoids them being accessed incorrectly later
@fix
2022-04-04 15:02:38 +01:00
Carsten Haitzler bb8874930b fix more unfullscreen clicker/toggle when window is small...
another codepath for the fullscreen flicker bug via the job handler

@fix
2022-04-02 11:01:01 +01:00
Carsten Haitzler 1051c77d31 fix fullscreen flicker/toggle when window is small and we get mouse out
we get a spurious mouse out if your window is small then told to go
fullscreen which then causes in ponter focus a unfocus event which
causes e to restore window to its non-fulscreen mode which then may
cause a mouse in again if mouse is positioned right which causes a "go
fullscreen now again" and so on... fix this and ignore that mouse out
right after going fullscreen.

@fix
2022-03-25 10:40:00 +00:00