1. 12 May, 2022 1 commit
  2. 11 May, 2022 1 commit
  3. 10 May, 2022 3 commits
    • Simon Ser's avatar
      tinywl: don't crash when there is no keyboard · fa9b6100
      Simon Ser authored and Kirill Primak's avatar Kirill Primak committed
      Running with WLR_BACKENDS=headless, there is no keyboard device.
      Avoid crashes like so:
      
          ../tinywl/tinywl.c:136:2: runtime error: member access within null pointer of type 'struct wlr_keyboard'
          ../tinywl/tinywl.c:136:2: runtime error: member access within null pointer of type 'struct wlr_keyboard'
          AddressSanitizer:DEADLYSIGNAL
          =================================================================
          ==331107==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000120 (pc 0x556ed03e4e99 bp 0x7ffce834bc10 sp 0x7ffce834bbb0 T0)
          ==331107==The signal is caused by a READ memory access.
          ==331107==Hint: address points to the zero page.
              #0 0x556ed03e4e99 in focus_view ../tinywl/tinywl.c:136
              #1 0x556ed03eb3be in xdg_toplevel_map ../tinywl/tinywl.c:603
              #2 0x7f75d6f768db in wlr_signal_emit_safe ../util/signal.c:29
              #3 0x7f75d6e9cac7 in xdg_surface_role_commit ../types/xdg_shell/wlr_xdg_surface.c:315
              #4 0x7f75d6eb6944 in surface_commit_state ../types/wlr_compositor.c:466
              #5 0x7f75d6eb7b02 in surface_handle_commit ../types/wlr_compositor.c:523
              #6 0x7f75d5714d49  (/usr/lib/libffi.so.8+0x6d49)
              #7 0x7f75d5714266  (/usr/lib/libffi.so.8+0x6266)
              #8 0x7f75d68cb322  (/usr/lib/libwayland-server.so.0+0xd322)
              #9 0x7f75d68c65cb  (/usr/lib/libwayland-server.so.0+0x85cb)
              #10 0x7f75d68c91c9 in wl_event_loop_dispatch (/usr/lib/libwayland-server.so.0+0xb1c9)
              #11 0x7f75d68c6d36 in wl_display_run (/usr/lib/libwayland-server.so.0+0x8d36)
              #12 0x556ed03eef55 in main ../tinywl/tinywl.c:905
              #13 0x7f75d5d2330f in __libc_start_call_main (/usr/lib/libc.so.6+0x2d30f)
              #14 0x7f75d5d233c0 in __libc_start_main@GLIBC_2.2.5 (/usr/lib/libc.so.6+0x2d3c0)
              #15 0x556ed03e46e4 in _start (/home/simon/src/wlroots/build/tinywl/tinywl+0x136e4)
      fa9b6100
    • Simon Ser's avatar
      backend/headless: allow variable refresh rate · 7b7562eb
      Simon Ser authored and Kirill Primak's avatar Kirill Primak committed
      Instead of waking up each 16ms to emit a frame event, arm the timer
      when the output is committed. This allows the headless backend to
      idle when nothing changes on screen, and behaves similarly to the
      other backends.
      7b7562eb
    • Kirill Primak's avatar
      xdg-toplevel: store states on the stack · 8b0d4947
      Kirill Primak authored
      8b0d4947
  4. 09 May, 2022 2 commits
  5. 07 May, 2022 3 commits
  6. 06 May, 2022 1 commit
  7. 02 May, 2022 2 commits
  8. 01 May, 2022 1 commit
  9. 29 Apr, 2022 1 commit
  10. 28 Apr, 2022 3 commits
  11. 26 Apr, 2022 1 commit
  12. 24 Apr, 2022 1 commit
  13. 23 Apr, 2022 1 commit
  14. 22 Apr, 2022 3 commits
  15. 17 Apr, 2022 1 commit
    • John Lindgren's avatar
      Revert "Copy xcb_icccm structs into wlroots" · 640f3b9f
      John Lindgren authored and Simon Ser's avatar Simon Ser committed
      The original commit introduced a bug by transposing the order of
      some of the fields in xcb_size_hints_t.  Since XCB ICCCM support is
      required now, we can just eliminate the duplicate structs.
      
      With minor changes:
      - Remove #ifdef HAS_XCB_ICCCM guards
      - Fix #includes
      - Fix references to local size_hints struct
      
      This reverts commit 12b9b1a4.
      640f3b9f
  16. 16 Apr, 2022 2 commits
  17. 15 Apr, 2022 1 commit
  18. 14 Apr, 2022 1 commit
  19. 13 Apr, 2022 4 commits
  20. 03 Apr, 2022 1 commit
  21. 01 Apr, 2022 2 commits
  22. 28 Mar, 2022 1 commit
  23. 26 Mar, 2022 1 commit
    • Guido Günther's avatar
      xdg-activation: Deduplicate token creation code · dd03d839
      Guido Günther authored
      There were three places initializing a token:
      
      - wlr_xdg_activation_v1_add_token
      - wlr_xdg_activation_token_v1_create
      - activation_handle_get_activation_token
      
      The initialization of the token.destroy was missing in the first one. To
      prevent these functions from getting out of sync move the token creation
      into a common function.
      
      Fixes 4c59f7d4 ("xdg-activation: Allow to submit tokens")
      dd03d839
  24. 23 Mar, 2022 2 commits