Commit Graph

3665 Commits

Author SHA1 Message Date
Kim Woelders 7ba2e59d1e menus: Eliminate enlightenment.menu
It is almost identical to settings.menu so let's just not have both.
2024-02-29 08:41:53 +01:00
Kim Woelders 33d89e9b07 ipc: Ignore whitespace only command lines
Avoiding error dialog.
2023-12-23 09:25:54 +01:00
Kim Woelders d094c7d925 events: Drop select() based event loop
poll() is available everywhere, I think.
2023-12-22 04:28:30 +01:00
Kim Woelders 0e8f3ec884 Unifdef HAVE_FREE_NULL_BUG
I doubt it is useful anywhere.
2023-12-17 19:25:30 +01:00
Kim Woelders 445b0449d1 Remove "Close" option from iconbox/systray menus
This prevents users from inadvertently destroying the iconbox(/systray)
thinking that it was the iconified application that would be closed.
To actually close the iconbox/systray just use the regular Window
options menu.

#13
2023-11-26 10:04:33 +01:00
Kim Woelders c9ab3da348 Pass screen geometry around in Area struct 2023-11-26 10:04:33 +01:00
Kim Woelders 214222e100 desktops: Maintain separate workareas for each desktop 2023-11-26 10:04:33 +01:00
Kim Woelders 5ce609cca7 Change formatting style
No tabs, more like K&R.
Also switch to indent 2.2.13.
2023-11-26 10:03:45 +01:00
Kim Woelders de28c0a034 tooltips: Do vertical alignment of icons/text 2023-10-28 09:37:48 +02:00
Kim Woelders 3787b6e530 tooltips: Change some variable names 2023-10-28 09:37:48 +02:00
Kim Woelders f64ab61db2 tooltips: Shorten some function names 2023-10-28 08:46:38 +02:00
Kim Woelders ab6bf3484e tooltips: Fixup after recent rendering change
Render main tooltip window text etc. on own pixmap, not the cached one
associated with the ImageState image.
2023-10-27 08:28:22 +02:00
Kim Woelders 1510cf0477 eimage: Remove some redundant function calls 2023-10-27 08:28:22 +02:00
Kim Woelders 49d9d22af8 Build with cast-align=strict, fix warnings 2023-10-24 14:43:50 +02:00
Kim Woelders dccc8cb55b config: Introduce method to invalidate theme cache
This will cause the theme configuration to be re-parsed on the next run
and whenever E_CFG_VER_CACHE is changed.
2023-10-24 08:10:09 +02:00
Kim Woelders ffaf268e62 config: Trivial macro name change 2023-10-23 18:48:56 +02:00
Kim Woelders 40d17e7a51 definitions: Change value of __NORMAL to remove weirdness
This does require all themes to be re-parsed.
2023-10-23 18:48:56 +02:00
Kim Woelders f89e5844cd CM: Don't do _NET_WM_CM_Sn acquisition in window mode 2023-10-23 05:30:31 +02:00
Kim Woelders c8a1f4daae session: Cleanups 2023-10-17 15:29:41 +02:00
Kim Woelders 75c132768f session: Another attempt at the Logout dialog layout 2023-10-17 15:28:53 +02:00
Kim Woelders 6e45dae6d6 session: Logout dialog adjustments
- Don't log out on Suspend/Hibernate
- Add Lock option
- Tweak layout. With all options enabled the dialog would become rather wide
2023-10-17 09:17:47 +02:00
Kim Woelders 91ef25bb42 session: Enable setting suspend and hibernate actions
If set the options are presented in the logout dialog.

Suggestion from Milan Maljković.
2023-10-13 08:40:59 +02:00
Kim Woelders b0f3dd2c2c session: Various trivial changes 2023-10-13 08:40:27 +02:00
Kim Woelders 6a66d7a2f6 actions: Add debug in Eexec() 2023-10-12 12:50:51 +02:00
Kim Woelders fbe5329ade cursors: Fix e16 theme cursors
The imlib2 context blend parameter is initially set, which could break
EImageRenderOnDrawableARGB(), breaking the e16 theme cursors.

Broken in 1.0.28 (by 1cef4a1044).
2023-09-30 21:46:30 +02:00
Kim Woelders cc090bf706 tootips: Correct some layout details 2023-09-28 19:01:22 +02:00
Kim Woelders 612138c6da tooltips: Render text/icons on background pixmap, not on window
Like done everywhere else.
Now tooltip content persists across vt switches etc.
2023-09-28 18:57:27 +02:00
Kim Woelders eed842fe6d iconbox: Fix weirdness with iconbox placement/sizing
Particularly when changing orientation.

Reported by Milan Maljković.
2023-09-25 17:01:09 +02:00
Kim Woelders a3e3977c5c ewins: Tweak allowed actions
Allow horizontal maximization when size is only vertically fixed and
vice versa.
Disallow fullscreening when size is horizontally or vertically fixed.
2023-09-25 16:24:40 +02:00
Kim Woelders a6a8cb529d FX: Fix clipping with compositing enabled some more
Reported by Milan Maljković.
2023-09-23 15:44:55 +02:00
Kim Woelders be426bbbf9 selections: Improve acquisition
When acquiring a previously owned selection we should wait for the
previous selection owner window to be destroyed.
2023-09-23 11:05:44 +02:00
Kim Woelders 2aa0f9fef4 dialogs: Enable using DialogOK() early 2023-09-23 11:05:44 +02:00
Kim Woelders 711e66fb86 CM: Check if root subwindow redirection succeeds
Disable compositing if not.

If we ignore that the redirection does not succeed e16 will behave
badly.
2023-09-23 11:05:27 +02:00
Kim Woelders 394d9374ff CM: Rearrange initialization sequence
First acquire _NET_WM_CM_Sn, should/may make other CM go away.

Then do the root subwindow redirection. Should succeed if other CM does
its un-redirection.
2023-09-23 07:18:49 +02:00
Kim Woelders 08d6e48be3 events: Fix detail in X-error printout 2023-09-22 22:29:15 +02:00
Kim Woelders 4ca0aa427c size: Let max size change work in unrestricted directions
Previously only e.g. max width (not size) change would change size of
vertically restricted windows.
2023-09-21 14:59:14 +02:00
Kim Woelders 3d872d0fe2 buttons: Fix dragbar rendering when direction is changed when compositing
Possibly also fixing other button issues (when compositing).

Reported by Milan Maljković.
2023-09-21 14:36:21 +02:00
Kim Woelders 8cf668e9c0 dialogs: Fix layout in window group selection
ASAN complains, bug might cause segv.

Broken by 3c42724f96 (in v1.0.25).

Reported by Milan Maljković.
2023-09-21 14:33:08 +02:00
Kim Woelders 6b9d2a6e34 dialogs: Remove extra separator in Miscellaneous Settings
Reported by Milan Maljković.
2023-09-21 14:33:08 +02:00
Kim Woelders 4f617c77bf text: Converge faster in TextFit functions
"Fitting" very long strings (replacing center piece of text with
ellipsis) could be very slow.

This should speed things up considerably by skipping a lot of
iterations.
2023-09-21 14:33:08 +02:00
Kim Woelders f7e60a5e29 text: Mostly trivial changes 2023-09-21 14:33:08 +02:00
Kim Woelders 9a1af26614 text: Cosmetics
Eliminate mlen.
2023-09-21 14:33:08 +02:00
Kim Woelders 051a418261 text: Fix calculating long multibyte string length (codepoints)
Fixes very long window titles sometimes spilling over into border
buttons.

Reported by Milan Maljković.

This fix causes slow rendering of very long window titles, this will be
dealt with shortly.
2023-09-21 14:33:03 +02:00
Kim Woelders edc06f4950 text: Drop unused fsize argument in Text functions 2023-09-21 14:32:11 +02:00
Kim Woelders 41ae0ec99e ipc: Fix potential segv
Also increase intermediate ipc buffer size.
2023-09-21 14:31:56 +02:00
Kim Woelders de581414db menus: Limit menu item text width
E.g. when a window title is rediculously long, the window list could
become rediculously wide.
The width is now rather arbitrarily limited to a third of the screen
width.

Reported by Milan Maljković.
2023-09-20 19:23:05 +02:00
Kim Woelders 2fdf689d90 ewins: Fix gravity related placement issue
Attempt to fix placement issues (walking window) for windows with
non-NorthWest gravity when withdrawn/shown.
2023-09-11 20:41:38 +02:00
Kim Woelders 50356c8b12 Revert "Optionally ignore gravity from WM_NORMAL_HINTS"
Doesn't fix the problem.

This reverts commit c6c5070311.
2023-09-11 20:40:47 +02:00
Kim Woelders 2e7e3f89d5 tooltips: Fix initially missing root tooltips
If enabled, they would initially not appear until some border or theme
element was entered and left.
2023-09-10 17:31:17 +02:00
Kim Woelders c6c5070311 Optionally ignore gravity from WM_NORMAL_HINTS 2023-09-10 16:48:15 +02:00