Commit Graph

3678 Commits

Author SHA1 Message Date
Kim Woelders 29b1cfbaad session: Try dbus before SM/ICE on logout/shutdown
Otherwise we will not get the Shutdown/Reboot dialog but always the
Logout one (with dbus and SM both enabled).
2024-04-06 13:10:18 +02:00
Kim Woelders d54702b071 session: Optionally do logout/shutdown via dbus commands 2024-04-02 15:35:03 +02:00
Kim Woelders cd517589b3 edbus: Add functions to request logout and shutdown via dbus 2024-04-02 15:35:03 +02:00
Kim Woelders e318bb07fe session: Rearrange logout functions
We can now also do shutdown when we don't have dialogs enabled.
2024-04-02 15:31:18 +02:00
Kim Woelders d73aff1391 session: Move some #defines 2024-04-02 14:44:09 +02:00
Kim Woelders f0a3f894b4 session: Introduce SessionLogout() 2024-04-02 14:40:19 +02:00
Kim Woelders af8665e634 session: Add shutdown command 2024-04-02 14:40:19 +02:00
Kim Woelders e0cd65cc10 session: Rename some macros 2024-04-02 14:40:19 +02:00
Kim Woelders 5aaa2857e6 session: Add some SM connection debug messages 2024-04-02 14:40:19 +02:00
Kim Woelders d836ee5ea1 session: Add missing newline in error message 2024-03-29 19:10:26 +01:00
Kim Woelders 8aacad3ef1 session: Mark some private functions as such 2024-03-16 08:38:55 +01:00
Kim Woelders 93f8594e4d session: Eliminate SessionSave() 2024-03-16 08:38:33 +01:00
Kim Woelders 7a6a475b20 session: Eliminate SetSMID() 2024-03-16 08:38:12 +01:00
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