summaryrefslogtreecommitdiff
path: root/app
AgeCommit message (Collapse)Author
2015-11-12Move kb pointer movement out of the kbfunc_client_moveresize since it'sOkan Demirmen
got nothing to do with clients, thus doing flags work causes lots of waste and almost useless jumpy pointer movements; while here, split out move and resize since they share almost no code, just like mouse client move/resize; factor out amount and factor. Still wonder why this is here, but it works now.
2015-11-12pledge "stdio rpath proc exec" cwm before main event loop, afterOkan Demirmen
init/setup - mostly for menu building. ok semarie@ (another cwm user)
2015-11-11Reduce gcc warnings. No functional changes.Matthieu Herrb
2015-11-11use HAVE_ instead of HAS_ macros for consistency.Matthieu Herrb
2015-11-11regenMatthieu Herrb
2015-11-11pledge for xclock. okan@ got to the same patch. I added autoconf gooMatthieu Herrb
to make it possible to send it upstreams. ok deraadt@
2015-11-11Partial revert of replacing screen_area() with region_find(); until aOkan Demirmen
fix for a regression is found; this bug has been around for a long time it seems, but this change exposed it. Likely need to track clients in to and out of regions.
2015-11-11avoid using err(), use xtermWarning() instead; ok semarieTheo de Raadt
2015-11-10Use position on root to figure out region.Okan Demirmen
2015-11-10Start cleaning up name vs function differences; replace magic numbers.Okan Demirmen
2015-11-09Clean up unused defines.Okan Demirmen
2015-11-09Extend region to include both view and work areas; switch toOkan Demirmen
region_find() which no longer needs to recalculate gap each time a client (or menu) is created or altered. If no RandR, fall back to display dimensions while building regions instead of during execution.
2015-11-08Fix use afer free in free_window_list().Matthieu Herrb
bug report by Gerrit Meyerheim, patch by Serguey Parkhomovsky on bugs@ Thanks to both.
2015-11-07add pledge to xtermSebastien Marie
the pledge call is done just before the main loop, so initialisation is almost done. - stdio: for all communication on opened fds (read/write/select/recvmsg/...) - rpath: for X11 error ("X Error of failed request: ...") which read at least /usr/X11R6/share/X11/XErrorDB - wpath : on exit, for opening WR_ONLY "/var/run/utmp" - cpath : for Tek emulation window (xterm -t) - id : on exit, for calling setegid() - proc: on exit, for calling kill() - tty: on exit, for calling tcflush() "it is time" deraadt@
2015-10-17Don't automatically launch dbus as part of the default user sessions.Matthieu Herrb
requested by deraadt@ no objection ajacoutot@
2015-09-23Only when mapping clients from an initial wm start or restart, query theOkan Demirmen
pointer and if it matches the child window, activate it; new clients will not need to make this roundtrip to the server. Based on a patch from Preben Guldberg.
2015-09-16On execwm, we should properly release resources before exec'ing into aOkan Demirmen
new window manager; so allow CWM_EXEC_WM to assign new wm to wm_argv and pass through cwm_status (now EXECWM) so that x_teardown() gets called before exec'ing the new window manager. Removes the need for a separate x_restart() now, using new wm_argv; and consolidates errno for execvp.
2015-09-05Update to xterm 320. Tested by jsg@ Thanks.Matthieu Herrb
2006-11-26Importing xterm 216Matthieu Herrb
2015-08-30Remove abuse of \/ which is not a slash but an italic correction;Ingo Schwarze
ok matthieu@, who will also push these fixes upstream (thanks).
2015-08-28Lost fix from r1.112; add comment.Okan Demirmen
Reported (again!) by Peter Kane.
2015-08-27Mechanical change: group->gcOkan Demirmen
2015-08-27Add consistent checks against NULL.Okan Demirmen
2015-08-27Move client cycle grab/ungrab into a more relevant place; while here,Okan Demirmen
update comments about why we need to grab/ungrab the keyboard.
2015-08-27Re-add lost chunk in group_cycle from r1.113.Okan Demirmen
2015-08-25Further simplify _NET_WM_DESKTOP handling using new group_assign().Okan Demirmen
2015-08-25oops; remove left over debug printOkan Demirmen
2015-08-25Allowing sending a valid 'nogroup' (0) group_ctx to group_assign()Okan Demirmen
(since we init all groups), though assigning the client's group to NULL for 'sticky'; use this simplification in a few places (others to follow).
2015-08-25Split out sticky mode checks and the restoring of a client's group andOkan Demirmen
_NET_WM_DESKTOP from the config-based auto-grouping; no (intentional) behavior changes. Needed for further work in cleaning up this area.
2015-08-24Implement _NET_CLIENT_LIST_STACKING (from Thomas Admin), butOkan Demirmen
bottom-to-top order, as per spec (notified Thomas as well).
2015-08-24Don't allow freeze operations on fullscreen (consistent with whatOkan Demirmen
fullscreen does).
2015-08-24Sort _NET_WM_STATE Atoms like the spec.Okan Demirmen
2015-08-23Move CLIENT_STICKY logic from client hide/unhide to group hide/unhide;Okan Demirmen
rationale being that clients should be able to hide/unhide independently of group switching.
2015-08-21Fix whitespace.Okan Demirmen
2015-08-21Add Xkb modifier to ignore mask; from Alexander Polakov.Okan Demirmen
2015-08-21Fix whitespace.Okan Demirmen
2015-08-21Add client freeze extension to _NET_WM_STATE Atom, allowing flag toOkan Demirmen
persist. As usual with new Atoms, requires X restart.
2015-08-21_NET_WM_STATE_STICKY implies only sticky at the group/desktop level, notOkan Demirmen
position and size; based on discussion with a few.
2015-08-21Instead of special casing the 'term' and 'lock' commands, go back toOkan Demirmen
keeping them hidden; showing them has apparently caused confusion/angst.
2015-08-21Leave command list order from .cwmrc alone; remove sort.Okan Demirmen
2015-08-21Bring group and client cycle closer together.Okan Demirmen
2015-08-20Alter big move and resize bindings to match what's in cwm(1);Okan Demirmen
functionally the same, but re-binding should be based on default bindings. Matches other similiar bindings. Discovered by a portable user.
2015-07-19Don't redefine build: locallyMatthieu Herrb
2015-07-12introduce 'groupsearch' for group menu search; matches on either groupOkan Demirmen
number/shortcut and/or name.
2015-07-12simplify menu print textOkan Demirmen
2015-07-03revert previous; seems search_match_text() needs mi->text pre-populated.Okan Demirmen
(only used in one place, application menu searching); re-visit later. broken application menu searching reported by Peter Kane.
2015-07-01styleOkan Demirmen
2015-07-01only special case label matches (and still list); get rid of the rest - ↵Okan Demirmen
matchname is complete enough
2015-06-30no longer need to pass down format strings after introducing search_print_cmdOkan Demirmen
2015-06-30Introduce a callback for cmd menu printing, special-casing 'lock' andOkan Demirmen
'term'.