1. Sep 02, 2023
    • op's avatar
      cwm: fix a semi-transparency border issue with some applications · 553bbb8a
      op authored
      When running with a compositor the border of some applications (firefox,
      chromium, zathura...) is not rendered correctly.  Initializing the highest
      significant bits of the color fixes it.
      
      diff from Julien Blanchard (julien at typed-hole [dot] org); ok okan@
      553bbb8a
    • okan's avatar
      Fix overlapping menu items as reported by kn@ and probably others at · 5dd4b577
      okan authored
      some point; with op@ and Walter Alejandro Iglesias helping along the
      way.  Consistently use font ascent+descent instead of an arbitrary font
      height+1 for individual menu item rectangles and placement.
      
      ok kn@ op@
      5dd4b577
  2. Apr 30, 2022
  3. Feb 27, 2022
    • okan's avatar
      cvsimport · 7af3a7b8
      okan authored
      * refs/heads/master:
        cycling fix: when no client is active, warp pointer to last active; from Walter Alejandro Iglesias.
        whitespace
        Fix spelling of some unused MWM hints; from Sean C. Farley.
        Add group-last command that shows only the previously active group; ok okan
        Allow bare numbers for key and mouse bindings; taken from similar support in other parse.y's; from Leon Fischer <lfischer@airmail.cc>.
        sync parse.y changes from base; ok naddy@
        Do not attempt to grab keys without a keycode; this incidentally allows XF86 keys support.
      7af3a7b8
    • okan's avatar
      cycling fix: when no client is active, warp pointer to last active; · 4e73ce53
      okan authored
      from Walter Alejandro Iglesias.
      4e73ce53
  4. Feb 26, 2022
  5. Jan 28, 2022
  6. Dec 25, 2021
  7. Nov 30, 2021
  8. Nov 22, 2021
    • okan's avatar
      sync parse.y changes from base; ok naddy@ · a9eeb046
      okan authored
      original from naddy@:
      > Don't declare variables as "unsigned char *" that are passed to
      > functions that take "char *" arguments.  Where such chars are
      > assigned to int or passed to ctype functions, explicitly cast them
      > to unsigned char.
      >
      > For OpenBSD's clang, -Wpointer-sign has been disabled by default,
      > but when the parse.y code was built elsewhere, the compiler would
      > complain.
      >
      > With help from millert@
      > ok benno@ deraadt@
      a9eeb046
  9. Nov 20, 2021
  10. May 21, 2021
  11. Apr 22, 2021
    • kn's avatar
      Keep pointer within window on maximize/fullscreen toggle · d46f34f0
      kn authored
      Spawn a window, maximize it in any way, move the cursor to a window border
      that is not on the screen's edge and unmaximize again:  While the window
      goes back the cursor stays at the screen's edge, i.e.  focus is lost to the
      underlaying window.
      
      Moving, resizing, tiling or snapping windows in any way always moves the
      cursor along iff needed, e.g. using MS-[hjkl] to move a small window from
      the center to the edge keeps the cursor within window borders -- no matter
      what you do with the keyboard, focus stays on that window.
      
      Make CM-f, CM-m, CM-equal and CMS-equal (default bindings) for toggling
      full-screen mode, maximization, vertical maximization and horizontal
      maximization of the current window drag the cursor along if needed as well.
      
      OK okan kmos dv
      d46f34f0
    • kn's avatar
      cvsimport · f24dd475
      kn authored
      * refs/heads/master:
        Keep pointer within window on maximize/fullscreen toggle
      f24dd475
  12. May 23, 2020
  13. May 15, 2020
    • Leah Neukirchen's avatar
      cvsimport · 3a570bb6
      Leah Neukirchen authored
      * refs/heads/master:
        Fixed memory leak in xu_get_strprop.
        Prevent out of boundary write with configuration files in which too many quoted arguments are stored for other window managers.
        Allow configuring a percentage window size of the master window during htile/vtile actions. From Uwe Werler, with a few manpage tweaks.
        zap stray tabs
        Instead of using _NET_ACTIVE_WINDOW on restart, use the pointer location to determine what client to set active. Reduces a round trip for every window.
        Add support for SIGINT/SIGTERM.
        Simplify conditional construct.
        Trim event_mask to those that the root window actually needs.
        No need to lookup current client early; move to right before it is needed.
        Recommit 1.259, but now with TAILQ_FOREACH_SAFE.
        Revert previous. Causes a crash as reported by Tom Murphy.
        Simplify list markup.
        Plug two memory leaks. Also get rid of a variable that is no longer necessary.
        Remove ColormaskChange from event-mask since there's no event handler.
        Unrelated style fixes, consistency changes and sorting, appropriate dosage/removal of wrappers, simplification of name queue, client cycle joins other kb/mb bound functions.
      3a570bb6
  14. Apr 26, 2020
    • tobias's avatar
      Fixed memory leak in xu_get_strprop. · 91c05f94
      tobias authored
      If a client calls XSetTextProperty for a window to clear all its
      properties, then allocated memory within libX11 is not freed.
      
      OK okan@
      91c05f94
  15. Apr 21, 2020
  16. Apr 17, 2020
    • tobias's avatar
      Prevent out of boundary write with configuration files in which too many · 3ebe04ee
      tobias authored
      quoted arguments are stored for other window managers.
      
      The quotation handling happens within the while loop without checking if
      the "end" limit has been already reached. If this happens, the final
      NULL assignment leads to an out of boundary write on stack.
      
      OK okan@
      3ebe04ee
  17. Apr 16, 2020
  18. Mar 24, 2020
  19. Mar 21, 2020
  20. Mar 20, 2020
  21. Mar 17, 2020
  22. Mar 15, 2020
  23. Mar 14, 2020
  24. Feb 28, 2020
  25. Feb 27, 2020
  26. Feb 08, 2020
    • okan's avatar
      cvsimport · 54d95c06
      okan authored
      * refs/heads/master:
        Allow the 'empty' group clients to be window-{h,v}tile'd.
        Map ('5') and allow mod5mask (altgr) as a modifier.
        add, then use, xvasprintf, checking for appropriate return.
        Ensure the pointer stays within client bounds after a window 'snap' (to edge).
      54d95c06
  27. Feb 10, 2020
  28. Feb 08, 2020
  29. Feb 04, 2020
  30. Jan 23, 2020
  31. Jan 21, 2020
  32. Jan 05, 2020