Commit Graph

388 Commits

Author SHA1 Message Date
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 33d89e9b07 ipc: Ignore whitespace only command lines
Avoiding error dialog.
2023-12-23 09:25:54 +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 41ae0ec99e ipc: Fix potential segv
Also increase intermediate ipc buffer size.
2023-09-21 14:31:56 +02:00
Kim Woelders d5724bd6cc ipc: Improve help for win_op target specification 2022-06-11 20:36:14 +02:00
Kim Woelders f07b6a74e5 ipc: Add custom format window_list 2022-04-28 19:26:58 +02:00
Kim Woelders 6d6d1c8dc4 ipc: Debug tweaks 2022-04-22 13:23:32 +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 0eb986a943 ipc: win_op help updates 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 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 799b267f28 ipc: Return error message on unknown command 2022-03-10 21:18:02 +01:00
Kim Woelders 9f033c4b9a ipc: Only include dialog_ok if ENABLE_DIALOGS 2022-02-16 19:35:43 +01:00
Kim Woelders da30b90052 Disable setting internal window title via ipc (properly)
Previously, when trying to set the title via ipc, the window WM_NAME and
_NET_WM_NAME properties would be changed, but the border title (e16's
perception of the properties) would not be updated because PropertyChange
notifications for internal windows are discarded (to avoid processing
changes we already know have happened, IIRC).

Now the internal window name properties are not changed, avoiding
inconsistency between properties and internal state (and border title).
2022-02-14 16:52:21 +01:00
Kim Woelders cbeb3fbd4a ipc: Enable setting dialog_ok title 2022-02-14 16:52:21 +01:00
Kim Woelders 85912e39e2 New feature - Making windows stick on specific desks/areas 2022-02-05 14:15:01 +01:00
Kim Woelders 0a65af57e5 Focus: Fix focus on new clients requesting max size 2021-07-15 12:59:58 +02:00
Kim Woelders 358b60baf9 Introduce E_ARRAY_SIZE() and MOD_ITEMS()
Just a bit tidier.
2021-03-19 06:36:46 +01:00
Kim Woelders 1dc44176d4 ipc.c: Trivial cleanups 2020-09-25 16:00:35 +02:00
Pierre Neyron b21e0cd093 Document the "absolute" parameter for the toggle_* window operations 2020-06-08 20:10:08 +02:00
Kim Woelders 0ef79b8771 Autofoo sound configuration cosmetics 2020-05-01 14:11:26 +02:00
Kim Woelders 83d1002949 Tweak winop opacity delta mode
- If current opacity property value is 0 meaning default then use
  actual current opacity.
- Don't go below 10%
- Going above 100 means use default (value = 0)
2019-03-31 20:21:50 +02:00
Kim Woelders 22b5e58dcd Refactor/rename/use _EFREE type macros 2018-12-22 11:44:22 +01:00
Kim Woelders 6d50041570 Minor win_op help update 2018-03-03 14:54:28 +01:00
Kim Woelders 3e5398789b Add some image cache control
Most of this requires imlib2-1.5.0.

- Enable showing setup and usage.
- Store regular image cache size in configuration.
- Add control for XImage cache item count.
2018-02-22 07:36:36 +01:00
Kim Woelders 8fcc2be58a Sort IPC help in columns instead of rows 2018-02-09 18:15:47 +01:00
Kim Woelders 6c4a143e97 Add (disabled) window/pixmap dump commnd 2017-12-17 06:39:18 +01:00
Pierre Neyron 4c3f0cbb7a add toggle_size half_X feature
Maximize window to a half of the screen (North, South, East, West)
wop * toggle_size half_N
wop * toggle_size half_S
wop * toggle_size half_E
wop * toggle_size half_W
2017-06-25 13:57:31 +02:00
Kim Woelders bf2b7fd300 Fix potential buffer overruns when using sscanf(). 2015-01-23 20:18:20 +01:00
Kim Woelders 9c31fe29ed Clean up header file inclusion order.
Fixes building with e.g. -std=c99 and c11 by always including config.h
(which defines _GNU_SOURCE) first.
2015-01-17 19:33:42 +01:00
Kim Woelders a9a568ffe3 Debug printout cleanups. 2014-10-17 21:25:12 +02:00
Kim Woelders 4d1bde02ae Wrap XID and some other X types.
Mostly to change longs to ints to reduce memory footprint a bit on 64
bit systems.
2014-04-23 19:13:00 +02:00
Kim Woelders e1f062fff5 Use NoXID in stead of None. 2013-12-29 08:59:38 +01:00
Kim Woelders 2a95307f44 Eliminate BordersForeach().
Also let BordersGetList() do alphabetic sorting.
2013-07-07 23:17:11 +02:00
Kim Woelders 1d2dd98f98 Eliminate Quicksort(), use libc qsort() in stead.
Might as well use libc function - saves some bytes of code.
2013-03-26 22:24:39 +01:00
Kim Woelders d4f1cd6a78 Fix using e16 with xcompmgr.
Various fixes around handling of _NET_WM_WINDOW_OPACITY.
- Propagate client window changes to frame window.
- Let zero value mean "do the default", i.e. use focused/unfocused config values.
- Only set client window property if opacity is set explicitly
  (matches, snaps, or ipc).

SVN revision: 84319
2013-02-23 11:35:49 +00:00
Kim Woelders 7fd4f7a71d Cosmetics.
SVN revision: 78407
2012-10-24 17:20:38 +00:00
Kim Woelders 91fb3cb8e9 Forgot some 2012 updates.
SVN revision: 72964
2012-06-27 19:13:22 +00:00
Kim Woelders 27602516a2 Cosmetics.
SVN revision: 68454
2012-02-26 20:15:45 +00:00
Kim Woelders dc9e952685 Add new "technical/opaque" move/resize mode.
Work by Daniel Manjarres.

SVN revision: 62889
2011-08-27 15:42:44 +00:00
Kim Woelders ecb4087714 Cosmetics.
SVN revision: 61647
2011-07-24 10:20:57 +00:00
Kim Woelders 6c56718b7c Change move/resize mode open coded values to defined values.
Partially based on patch by Daniel Manjarres.

SVN revision: 59991
2011-06-06 14:39:57 +00:00
Kim Woelders 8149f1017a Enable setting/saving ignorearrange attribute in window menu.
Patch by Daniel Manjarres.

SVN revision: 59351
2011-05-12 18:57:00 +00:00
Kim Woelders a87641f97e Warning fixes for gcc-4.6.
SVN revision: 56392
2011-01-30 00:07:50 +00:00
Kim Woelders f0c0a4519c Change TimerAdd() and TimerSetInterval() time to ms.
SVN revision: 55891
2011-01-05 18:05:57 +00:00
Kim Woelders 8332c36c0b Print error message if no argument is given to win_info command.
SVN revision: 55788
2010-12-31 11:49:29 +00:00
Kim Woelders 674ae16616 Add const to Quicksort compare function prototype.
SVN revision: 55273
2010-12-05 05:38:39 +00:00