Commit Graph

5153 Commits

Author SHA1 Message Date
Kim Woelders 04f040199c moveresize: Remove long time unused swapmove code
Not active because doSwapMove() has been disabled for ages.

Not resurrecting, doesn't seem to work properly.
2022-04-22 07:35:00 +02:00
Kim Woelders e789b1740e moveresize: Remove disabled nogroup move functions
Nogroup operations have been implemented by other means.
2022-04-21 09:08:47 +02:00
Kim Woelders 5e7ca9c93e containers: Configuration saving tweaks - fixup
Forgot to change file name buffer, container configuration changes
could get lost.
2022-04-19 18:11:21 +02:00
Kim Woelders 9cfe1e2577 Fix some problems with resize-by-keyboard
If using the pointer while in resize-by-keyboard mode one could run into
a couple of issues, among others that the window outline frame might not
be taken down.

To fix this the pointer is now also grabbed in resize-by-keyboard mode
but pointer events ignored.
2022-04-19 17:05:55 +02:00
Kim Woelders 243c33d084 Winops layer menu: Add "Lowest"
Also rename "On Top" to "Highest".
2022-04-19 14:41:55 +02:00
Kim Woelders 0eb986a943 ipc: win_op help updates 2022-04-18 20:41:11 +02:00
Kim Woelders f370ba49a3 French translation update (Philippe J. Guillaumie) 2022-04-18 20:41:11 +02:00
Kim Woelders 34f007d088 Add window option to pass-through pointer events 2022-04-16 11:26:17 +02:00
Kim Woelders edd9216610 arrange: Disable ARRANGE_BY_POSITION mode
Rather perculiar thing..
2022-04-04 18:35:45 +02:00
Kim Woelders 684e911c9e arrange: Simplify/speed up by using qsort(), cosmetics 2022-04-04 18:35:45 +02:00
Kim Woelders b3e5758442 arrange: Minor tweak in SnapEwin()
Use EwinListGetAll() instead of EwinListOrderGet().
ListWinGroupMembersForEwin() uses EwinListGetAll() (i.e. the stacking
list) so it seems more consistent to use the same throughout this
function.
2022-04-04 13:21:18 +02:00
Kim Woelders c5ffe964b0 arrange: Use object order list when arranging
Previously the stacking order was used. This meant that windows of the
same size after stacking changes might be shuffled around when doing e.g.
"desk arrange", which does not seem right.
2022-04-04 13:21:18 +02:00
Kim Woelders 31cb37f935 arrange: Remove pointless call to EwinListGetAll() 2022-04-04 13:21:18 +02:00
Kim Woelders 08b70658d3 stacking: Hold all objects in the order list
I.e. not just the EWins.
2022-04-04 13:17:53 +02:00
Kim Woelders 66c69bbcc6 stacking: Cache EWin lists
Probably not a major gain but avoids re-generating the list on every
EwinListStack/OrderGet call.
2022-04-04 13:17:53 +02:00
Kim Woelders fd9270d4d2 stacking: Refactor EwinListStackGet() 2022-04-04 12:49:37 +02:00
Kim Woelders f171611d89 stacking: Cosmetics, preparing for other changes 2022-04-04 12:49:37 +02:00
Kim Woelders a67b247ff2 stacking: Rename EwinListStack to EobjListStack
More appropriate, it holds all the EObjs.
2022-04-04 12:49:37 +02:00
Kim Woelders 33dc371131 stacking: Remove unused EwinListStackGetTop() 2022-04-04 12:49:37 +02:00
Kim Woelders 4bd69a0b66 Update winder theme 2022-04-03 17:21:40 +02:00
Kim Woelders 49c4ddcb5e CM: Adjust shadowing conditions some more
Regular clients:
- Disable if fullscreen
- Disable if *client* is shaped (<- changed with this commit)
  Now shaped border themes like winter again can have shadows like
  before the previous fix (a41b2209).

Override-redirect:
- Disable if shaped
2022-04-03 17:05:24 +02:00
Kim Woelders ef8092597b e_gen_menu: Fix breakage when PATH contains non-existing directory 2022-04-01 08:31:16 +02:00
Kim Woelders dabf1ba150 Fix imageclass flip/rotate for real
The fix in 9d678fc554 forgot to call
EImageOrientate() in the !Conf.memory_paranoia case.
2022-03-31 13:52:04 +02:00
Kim Woelders 956eb86c4d focus list: Fix a couple of glitches with outline window
- Hide the outline window on Escape from focus list
- Hide the outline window when cycling to an offscreen window
2022-03-31 11:03:14 +02:00
Kim Woelders 44c01a009b Accept client window events a bit earlier
Set the cut-off event serial number to the serial number of the window's
map request.

Fixes cases where a client sends a client message immediately after
mapping.
2022-03-31 10:29:10 +02:00
Kim Woelders 73d9250601 Remove stray quote in help text 2022-03-31 09:44:45 +02:00
Kim Woelders a41b220904 CM: Adjust shadowing conditions
Treat all (non-off) shadow modes alike
Disable if shaped (OR too)
Disable if fullscreen (regular clients)
2022-03-30 22:18:20 +02:00
Kim Woelders 83a13eb6bf CM: Fix initial shaped state on OR windows 2022-03-30 22:18:20 +02:00
Kim Woelders fa28b45a40 Danish translation update. 2022-03-11 06:50:51 +01:00
Kim Woelders e62c11ab0f Update po 2022-03-11 06:44:01 +01:00
Kim Woelders d92bc5a90a backgrounds: Drop 'use_bg' IPC command (but not entirely)
Use "bg use ..." instead of "use_bg ..."

It looks like there are users out there (epplets, feh), so for
compatibility handle it in the ipc compat department.
2022-03-11 06:41:28 +01:00
Kim Woelders dffa629b47 backgrounds: Drop most calls to autosave()
autosave() saves config and snapshot stuff but not the background
configuration.
2022-03-10 21:18:02 +01:00
Kim Woelders 799b267f28 ipc: Return error message on unknown command 2022-03-10 21:18:02 +01:00
Kim Woelders f633be2c70 session: Do call module exit functions on X disconnect
Various configuration files should be written on exit.
In particular background configuration changes could be lost.
2022-03-10 20:24:42 +01:00
Kim Woelders ba2e0ab871 glwin: Drop close on exit
Not necessary.
2022-03-10 20:24:42 +01:00
Kim Woelders 95d47591cf containers: Configuration saving tweaks
- Don't save configuration on exit.
  We already save it whenever it changes.
- Update configuration file atomically.
2022-03-10 20:24:27 +01:00
Kim Woelders dcfb5efba1 Move XFontSet based text rendering module to separate file
Like the other font handlers.
2022-02-20 21:58:14 +01:00
Kim Woelders 01eb2aef59 Drop XFontStruct based font handling
Hasn't been active or enabled in ages, possibly never.
2022-02-20 19:22:26 +01:00
Kim Woelders b48db942a2 Simplify src/Makefile.am
Also rename ttfont.c to text_ift.c for consistency.
2022-02-20 19:22:13 +01:00
Kim Woelders 9904bdbe66 Add python versions of perl sample-scripts 2022-02-17 09:55:26 +01:00
Kim Woelders 3cb75416a9 Sample script fixes and tweaks 2022-02-17 09:55:26 +01:00
Kim Woelders 93e62a25f5 sample-scripts: Tabs -> spaces
And a few other whitespace adjustments.
2022-02-17 09:55:26 +01:00
Kim Woelders 254bbc4394 e_gen_menu: Some icon search updates
- Add 'legacy' to IconCats
  Finds quite many extra on my box
- Add 'mate' to Themes
- Look for .xpm too in /usr/share/pixmaps
  Finds just one more
- Look for 128 size icons too
  Finds just one more
- Look for .svg too
  Finds quite many extra
2022-02-17 09:55:26 +01:00
Kim Woelders 64e5fd5305 e_gen_menu: Drop old gnome/kde stuff
Obsolete for decades by now, I think.
2022-02-17 09:55:26 +01:00
Kim Woelders 5e000d0d4e e_gen_menu: New python version
Quite a bit easier to read, IMO.
Looks like twice as fast as the old perl one.
2022-02-17 09:55:26 +01:00
Kim Woelders 8c6817fd99 e_gen_menu: Rename to e_gen_menu.pl
About to be replaced but let's keep this one around for a bit.
2022-02-17 09:55:26 +01:00
Kim Woelders a790d21492 config: Convert string update script to python and update 2022-02-17 09:55:26 +01:00
Kim Woelders 8cb792d0de menus: No longer need to pass through shell 2022-02-17 09:53:20 +01:00
Kim Woelders bd8433bdfc Remove now unused usershell() 2022-02-17 09:53:20 +01:00
Kim Woelders 5ee83dc874 Drop using shell to run menu (ipc exec) commands
Instead do environment variable substitution when menus are loaded and
run commands directly (with execvp()) without passing through shell.
2022-02-17 09:53:20 +01:00