Commit Graph

5364 Commits

Author SHA1 Message Date
Kim Woelders a0c24a89af Fix C++ build
Apparently compiling with -x c++ does produce warnings about missing
items in designated initializers.
2022-04-24 11:39:50 +02:00
Kim Woelders 5f23c8fce9 arrange: Fix C++ build 2022-04-24 11:39:50 +02:00
Kim Woelders f812edf7fe epp: Fix potential compiler warning 2022-04-24 11:39:50 +02:00
Kim Woelders 3ad01fdda7 focus: IPC help tweaks
- Mention next, prev, and focus mode ?
- Some wording and format changes
2022-04-22 17:00:05 +02:00
Kim Woelders a178c11eb9 menus: Add pass_ptr option to winops menu 2022-04-22 13:29:46 +02:00
Kim Woelders 403f8659e4 place-pagers.pl: Only optionally stack below(or above) 2022-04-22 13:23:49 +02:00
Kim Woelders 6d6d1c8dc4 ipc: Debug tweaks 2022-04-22 13:23:32 +02:00
Kim Woelders a09b13260a dialogs: Drop re-centering combined dialog on item change
Gives maybe a bit more smooth appearance.
Allows it to be moved away and not re-centered on change.
2022-04-22 08:02:23 +02:00
Kim Woelders 3c42724f96 Dialog layout adjustments
In general left-align text labels.
2022-04-22 07:41:58 +02:00
Kim Woelders 8090324299 moveresize: Refactor some conditions for readability 2022-04-22 07:35:28 +02:00
Kim Woelders a5228ad9e0 moveresize: Remove long time unused constrained move code
Not active because doMoveConstrained() has been disabled for ages.

Was effectively equivalent to setting misc.snap.screen_snap_dist to
large value.
2022-04-22 07:35:20 +02:00
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