Commit Graph

65757 Commits

Author SHA1 Message Date
Augustin Cavalier
5e7d399ef4 TCP: Check state in Persist and DelayedAcknowledge timeouts.
As the comment already notes, it's possible that we wind up
in the timeout routine despite the timer being cancelled, if
the cancellation was done after execution was in progress.

In either case, do not invoke Send if there is nothing to do,
as invoking Send...(force = true) will generate a duplicate ACK.
Duplicate ACKs will be noticed by the remote end as a sign of
congestion, so we don't want that to happen.

Change-Id: Iac30c140c322ccf0b0477e434459e7674bc24e1a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7283
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2023-12-31 03:36:27 +00:00
Augustin Cavalier
265e1e4d6a TCP: Update implementation comment at the top of the file.
A variety of things marked "not implemented" actually are,
at least partially, but the comment was not adjusted.

Change-Id: I760cca8ef3f601d27c0143f7dc75f5049d02f899
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7282
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2023-12-31 03:36:27 +00:00
Augustin Cavalier
6b7fde3300 tcp_shell: Don't include dropped packets in the dump.
Otherwise it's just confusing.

Change-Id: Ic88550c05a957b06917cfc08d1163ffe5b2e0652
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7281
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-31 03:36:27 +00:00
Augustin Cavalier
dc8bc8c1ce tcp_shell: Add send_loop command.
Useful for sending more data than fits in one buffer.
With "send_loop 100m", the traffic stalls are readily
reproduced.
2023-12-30 16:30:14 -05:00
Augustin Cavalier
dbb0ad7129 tcp_shell: Fix crash on close. 2023-12-30 16:29:37 -05:00
Augustin Cavalier
87cfc3b883 tcp_shell: Support dumping packets to a pcap file.
For analysis in Wireshark (and other tools.)
It should be possible to use this mode with
a FIFO for real-time analysis, too.
2023-12-30 15:55:09 -05:00
PulkoMandy
da4dbfa47a API docs: document KernelExport.h and overview of synchronization primitives.
Change-Id: Ic3853bf103710f289a32f43f5fb1beb79bca0b9f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7245
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-30 18:33:37 +00:00
John Scipione
be84a3d6e4 Icon-O-Matic: Minor changes and style fixes to list views
Not 100% style changes but the functional changes are very minor.
This is to create a clean base on which to make my other changes.

Remove commented out code. Remove LIB_LAYOUT.

Replace calls to _SetDropAnticipationRect with assignment to fDropRect,
make all methods protected. Rename _SetDropAnticipationRect to
InvalidateDropRect and remove _'s from methods.

Some extra NULL checks are included in ShapeListView and it has been
de-indented.

omit .0 where it doesn't matter.
rename r to rect
tab style on classes
use SetHighUIColor/SetLowUIColor where appropriate

Change-Id: Ife514452dc6ea5d5cd75ccba2fd13d46d69bcffc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7214
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-12-30 18:25:57 +00:00
John Scipione
879e5f5a80 BListView: More auto-scroll fixes from hrev57439
Only auto-scroll if button clicked inside view, not if clicked outside
and then dragged in. Save MouseDown() button state to compare against
in MouseMoved().

Don't alter selection on first click of selected item on multi-select
lists. This eats a click on multi-select lists when you click on a
selected item with no modifiers held down to allow for drag and drop.
It will update the selection on the second click (and there-after).

https://www.haiku-os.org/legacy-docs/bebook/BListView.html InitiateDrag()

"... derived classes typically permit users to drag items only if
they're already selected (if wasSelected is true). In other words, it
takes *two* mouse-down events to drag an item—one to select it and one
to begin dragging it." (emphasis mine)

Technically this should only happen on draggable multi-select lists, but
it doesn't hurt (much) on non-draggable multi-select lists and I can't
easily tell if a list view is draggable or not until InitiateDrag() is
called. By then it's too late to eat the click in MouseDown().

BeOS R5 solved this problem by selecting on mouse up insted of down but
we don't want to do this so we'll just have to accept that the first
click in this case doesn't count.

Simplify invalid and disabled item logic. If clicked on invalid
(somehow) don't alter selection, if clicked on disabled deselect all.

Change-Id: I6bf40de85da442ee7acd86ab6d91ff0cac7ab106
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7279
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-30 18:25:57 +00:00
Humdinger
ec595170fb Improve Deskbar window-icons
Better visible "swishy" lines that represent windows on another
workspace.

Deskbar_Window_Switch_Overlay are just the swishy lines.
Moved the windows of Deskbar_Window_Hidden and Deskbar_Window_Visible
to the right, so overlay lines can be simply "appended" in IOM.

Fixes #18727

Change-Id: I08eabd0f2e95a23921caf968ac73abf7758ae7ce
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7280
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-30 18:12:34 +00:00
Murai Takashi
cbf3fb528f expander: Fix file descriptor leak
Pointed by Infer static analyser.

Change-Id: Iaf79d58a963976a8ee6f7313c3d1902ff50ecf9e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7258
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-12-30 18:10:43 +00:00
PulkoMandy
dbe86e4638 regex.h: use _DEFAULT_SOURCE
This file was imported from glibx and uses __USE_GNU as defined by
glibc(s features.h. Our implementation of features.h is simpler, just
defining _DEFAULT_SOURCE directly and that's what we use in other
headers.

As a result, using GNU extensions to regex.h required defining __USE_GNU
directly in applications (for example in TraX).

Fixes #11818

Change-Id: I11e4cf2e88c330cf58083852c4b33aedb8a3a9ea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7238
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-12-30 18:09:57 +00:00
Autocomitter
a787cf81fe Update translations from Pootle 2023-12-30 08:18:29 +00:00
PulkoMandy
4629bc0cc7 ffmpeg: stream cur_dts is not publicly available anymore
Change-Id: I613f110978c5859cf4db05824c0345fbd8a992bc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7276
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-12-29 21:06:41 +00:00
PulkoMandy
bda0b2b0bb ffmpeg: remove AVCODEC_FLAG/CAP_TRUNCATED
https: //ffmpeg.org/pipermail/ffmpeg-devel/2021-September/285257.html
Change-Id: I61c306a9f040378afbe643a1ab3869cff60c2690
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7253
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-29 21:06:41 +00:00
PulkoMandy
926289d3b2 ffmpeg: missing const
Change-Id: Id0121958533afde8b226c5e8f6591356d59e3a9e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7250
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-29 21:06:41 +00:00
PulkoMandy
9bf436a214 ffmpeg: av_init_packet is deprecated
https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=3189

Change-Id: I5ac25141ce76b2f7737e2f1b7ce5c8eac4a90082
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7249
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-29 21:06:41 +00:00
PulkoMandy
3d6dc09d83 ffmpeg: avcodec_find_decoder returns a const AVCodec*
Change-Id: I03af13cc74f8bee7b82bb6398aadbfc28ce92df9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7248
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-29 21:06:41 +00:00
PulkoMandy
fadf60cd92 ffmpeg: remove unused variable
Change-Id: Icd933dbb45c33ad48f59473b75dbaaf22faba0df
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7246
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-29 21:06:41 +00:00
Augustin Cavalier
295124473f tcp_shell: Fix build and revive.
It works!

I think this was last used in 2008 or thereabouts.
The various TCP refactors in the interim likely
would have profited from it...
2023-12-29 15:51:26 -05:00
Augustin Cavalier
819c51084f network: Update device statistics (mostly) in the stack.
We bypass device logic in datalink_send_routed_data() in the case
of RTF_LOCAL, so if we don't update the stats there, they'll never
get updated. Furthermore, there's places packets can be dropped
inside the device reader thread. So, we might as well consolidate
the stats-updating logic and get it out of drivers.

(The only remaining case where drivers need to update stats is when
they drop a packet in receive(), as the stack can't tell when an error
from receive() is due to a dropped packet or not.)

Fixes a potential leak on packet drops in the device reader thread,
and fixes loopback statistics for TCP/UDP/etc.
2023-12-29 12:59:24 -05:00
John Scipione
fd2a5629f1 BListView: Contain scroll within scroll area horizontally
... but extending vertically above and below the list view.

https://www.haiku-os.org/legacy-docs/bebook/BListView_Overview.html

"BListView provides an autoscroll feature: There's an invisible area
about 25 pixels high both above and below the list view; if the user
clicks inside the list view and then drags into this autoscroll area,
the contents of the list will scroll in the direction of the mouse."

Instead of 25px scroll vertically without limit because scrolling
speeds up as you move the mouse cursor further away.

Change-Id: I52296beb2b0173fc5c909255163e8725e99c2b6c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7244
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-12-29 14:23:17 +00:00
Murai Takashi
963681995c file_systems/fat: Fix duplicateExpression
Pointed out by cppcheck

Change-Id: I21314d0724fd1b7ae74c575197aa3b50fb75db55
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7256
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-12-28 17:40:02 +00:00
Murai Takashi
8a0910dd49 disk/virtual: Fix use after free
Pointed out by cppcheck.

Change-Id: I785b7ee5623ac9fb37f2be0b9a75cdd82b5784fa
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7257
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-12-28 14:47:43 +00:00
PulkoMandy
4c07199d82 Add a script to draw a dependency graph from a set of hpkg files
Useful for understanding dependency chains.

Change-Id: I64113ff87fe3cef2f45796b064749e0c6a5bf880
2023-12-28 14:10:30 +01:00
John Scipione
488ab9b45f BListView: Fix crashes on MouseUp in Genio and Icon-O-Matic
... and others and double check for valid items on MouseMoved().

Bail out if drag item is invalid instead of deselecting.
Make sure that the item is valid before deselecting it.

Fixes #18707 #18716

Change-Id: Ic115f713f2aef7dfebafd23bc3107106b9128b8a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7243
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-27 21:14:28 +00:00
John Scipione
6307bc5739 Tracker: Refactor Default settings to be in one place
Create TrackerDefaults.h to share default setting values between
TrackerSettings.cpp and SettingsView.cpp instead of duplicating
the default value in both places.

There is now one source of truth if we ever want to change a
setting it won't cause regressions to the Defaults and Revert
button state.

TODO Does not yet include Disk auto-mount settings.

Add HideDotFiles to the defaultable list for Windows settings
and make its default false (was true in some places).

Fix issues with the Defaults button not enabling Enable type-
ahead filtering and Generate image thumbnails as it should.

Move default color constants to TrackerDefaults.h, remove TODO.
Rename kSpaceBarAlpha to kDefaultSpaceBarAlpha matching rest.
Create RGBTOHEX(c) macro to convert rgb_color to a (hex) number
for HexScalarValue to set the default space bar colors.

Saving these old hex values in the commit message:
UsedSpaceColor: 0xc000cb00
FreeSpaceColor: 0xc0ffffff
WarningSpaceColor: 0xc0cb0000

Reorder setting to match display order.

I've gone way over 80 in TrackerSettings and SettingsViews due
to long variable names.

Change-Id: Iafd6dfc5e738562d73967558e1f151fc7fed5866
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7196
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-24 13:23:34 +00:00
Augustin Cavalier
45b72f4c60 pkgman: Use natural sorting in "search" output.
Fixes #18676.
2023-12-23 23:05:08 -05:00
Augustin Cavalier
0387c6accb Network: Do not default to Wi-Fi icons in the Interfaces preflet.
At least TUN/TAP don't appear with the "wireless" icon anymore.
2023-12-23 22:36:51 -05:00
Augustin Cavalier
094f638456 kernel/vm: Perform area ownership check before protection check.
This way we do not "leak" area protection status (not really a
significant concern at the moment, but might as well while I
was looking at this.)
2023-12-23 22:31:28 -05:00
Augustin Cavalier
04f148c74a kernel/vm: Allow B_CLONEABLE_AREA flag to be added through set_area_protection. 2023-12-23 22:28:57 -05:00
X512
0bb43cbf5a poke: map area into client team in POKE_MAP_MEMORY ioctl
After this change `POKE_UNMAP_MEMORY` ioctl will became redurant and
an alias for `delete_area()`. Areas will be automatically deleted
on team exit.

Change-Id: I336b49c2281abf064e1bf28d908c7b2c5afd4df0
2023-12-23 22:26:26 -05:00
PulkoMandy
e92b4d3a27 docs/develop: add sourcetree layout document
Largely based on a_brief_introduction_to_our_source_repository_layout.html
from the website, revised and updated. I will delete the one from the
website and put a redirect to here once this is merged.

Change-Id: I06657bbea4c16df7bff1f2357cffd2ec8a63c65a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7236
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-12-24 02:56:51 +00:00
John Scipione
0b3890fea1 Keymap: Fix Modifier Keys window regressions from hrev57267
Fix _DuplicateKeys() conflict check for Caps Lock to ignore right side.
- Create kUnset constant set to 0 so it's clear what's going on.
- Create kDisabled constant set to -1 for that case.
- Declare loop variables one time out of loop scope, uint => int for -1.

Fix _MarkMenuItem() warnings icon check. We should get a yellow warning
icon if your left and right modifiers don't match (except on Caps Lock).

Create an _UpdateStatus() method that calls the other methods we need.

Reverse the placement of the Revert and Cancel buttons. Cancel goes just
to the left of the OK button and Revert goes all the way left.

Restore _HideShowStatusIcons(), this is used to push the menu fields
over when there is no conflict. _ToggleStatusIcon() convenience method.

The key role is called "Caps Lock" not just Caps. Method and variable
names are fine, but the " Lock" part is important in the label. Also use
"Caps Lock key" instead of just "Caps Lock" for the menu field value.
We use " key" at the end for the other cases to differentiate them from
the role label.

Minor nitpicks:
- Change comment variable name to label. I understand that it says
  B_TRANSLATE_COMMENT, but it's a label, the comment is for i18n.
- Fix same method declaration style, and in header.
- Add 2 new lines after pragma instead of 1

Change-Id: I194e69486310a249d0ef2d5d5977ae69954e9a27
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7179
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-24 02:47:06 +00:00
John Scipione
82bfaa954d BListView: Add ScrollTo(index) method, auto-scroll on drag
Multi-select lists may also auto-scroll on drag now as well.

Document ScrollTo(index). Give Scrolling its own section.

Change-Id: I36284a28376a01bafd23ddb30162fc786fb41521
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7213
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-12-24 02:45:59 +00:00
David Karoly
8d024b7062 boot/efi/riscv64: fix initial page mapping
Change-Id: I777069a7f7b96b4cdabeef40cf7e055516abfe00
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7237
Reviewed-by: X512 X512 <danger_mail@list.ru>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-12-23 20:59:23 +00:00
Autocomitter
7d21eec8f1 Update translations from Pootle 2023-12-23 08:17:41 +00:00
Jérôme Duval
e2f1a42ea9 acpi: add device tree attributes from _CLS if available
means B_DEVICE_TYPE, B_DEVICE_SUB_TYPE, B_DEVICE_INTERFACE.
_CLS is rare, it means I don't own devices with this attribute.

from the spec: _CLS:
Class Code – supplies OSPM with the PCI-defined class, subclass and programming interface for a device. Optional.

Change-Id: I4f7b7ed66cbe6b4ff4511cb13df2af218350a5d8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7210
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2023-12-19 05:40:16 +00:00
PulkoMandy
53f146bc7d launch_server tests: fix gcc2 build
The launch daemon tests consist of two parts: one unit test and one
set of "libbe_test" executables. These share some sources from the
launch daemon source directory, but use different compiler flags.

Due to the way we generate object files, the .o files for both variants
end up overwriting each other since they are generated in the same
directory.

There is also some confusion on compiler flags, since some flags are
applied globally to the directory and confuse one or the other of the
two targets.

To avoid this, move the test binaries to a subdirectory separate from
the unit tests.

Change-Id: I28058abf7a4d4356bc56ef7a67430a277b979532
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6875
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2023-12-18 08:00:33 +00:00
Autocomitter
4d86552c0e Update translations from Pootle 2023-12-16 08:16:55 +00:00
PulkoMandy
15338de99f Update ACPICA to 20230628
Change-Id: I5cbe5fa52bcca13ef8308ae1d2a1b1c19afcfe7e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7142
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-12-15 15:15:12 +00:00
Jérôme Duval
e691cf1eed ffmpeg: avcodec_free_context seems to also free extradata
* context->extradata seems to be set to fExtraData or fInputFormat.MetaData().
Both are managed by us, so set context->extradata to NULL before freeing.
* avcodec_close() shouldn't use according to the documentation:
"Use avcodec_free_context() to destroy a codec context (either open or closed).
Opening and closing a codec context multiple times is not supported anymore – use multiple codec contexts instead."
* fix #18713

Change-Id: I820deefcffea52a39fcb7587153d40dc03c85024
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7208
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-12-15 07:55:38 +00:00
X512
b5ba4badb3 app_server: clear background immediately on expose
Reduce stamping artifacts when application slowly responds to redraw requests.

This fixes and reintroduces logic previously removed in hrev53711.
Previous logic was incorrect as it didn't take the possibility of multiple
invalidations of different kinds (expose, update request) into account.
Now separate update and expose regions are maintained and only expose region
is cleared immediately.

Change-Id: I0fd98cb1b45ccec285154e8c0d8e3a1400d156d7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6067
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-12-13 11:31:27 +00:00
John Scipione
9d660c7738 AboutSystem: "Show replicants" hide border fixup
Change-Id: I5926bbacae54238f2e399e28ae0ccbc7841e7c1a
2023-12-11 15:52:00 -05:00
Humdinger
f362628248 Web+: Fix bookmark bar for localized systems
The folder name "Bookmark bar" should never be translated.
If it is, the folder won't be found, the bookmark bar never shown and
the menu item "Show bookmark bar" always disabled.

Change-Id: I0fb5bc6d4027c7fa957205c1da72c2fabd9e122e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7204
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-11 18:37:37 +00:00
John Scipione
fc786a2f07 AboutSystem: Hide border when "Show replicants" is turned off
Create SysInfoDragger class and override its MessageReceived() method
to redraw the target view when draggers are shown or hidden.

Check that fDragger->AreDraggersDrawn() is turned on before drawing
the border in the SysInfoView::Draw() method.

Change-Id: I8de1acafe52319ae0f4ed1d91eec2e9c0ad2cb9f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7191
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-11 18:20:04 +00:00
John Scipione
1395769e97 AboutSystem: Fix up layout issues with old replicants
... you have lying around on your Desktop that did not get updated
correctly based on changes that have been made since the replicant
feature was introduced.

Do not archive class members in Archive(). Remove SysInfoView
archive constructor. Recreate replicants fresh. No saving to lists
and restoring.

Maintain bottom right corner whenever replicant is resized by
creating _ResizeBy() and _ResizeTo() methods. Since we're starting
over with replicants, this only happens when the uptime wraps.

Fix box height issues, was a bit too tall.

Change-Id: I464fc09a6f86bc88dc09007c9356d2faac340e77
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7189
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-11 18:20:04 +00:00
Jérôme Duval
1a7cf57024 usb_hid: the report value for an array is an index starting at the logical minimum
to be tested, related to bug #18641

Change-Id: I54b09001a7baf5e868eb5f26ca3064d4e6f31e53
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7069
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-12-11 18:17:06 +00:00
Pascal Abresch
6fe3a560bd radeon_hd: tell ATOMbios that we handle brightness control
In hrev55767, a previous patch added the needed code for Haiku to control the display brightness. However, we didn't tell the video card BIOS about it, and so the card could also control the brightness by itself.

This disables BIOS based brightness control and lets Haiku take over cleanly.

Change-Id: Ie0e8f7e653c2d4773c463d21246f2ccc6ec8f441
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7116
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-12-11 18:10:14 +00:00
X512
33365c2a0d AbstractSocket: do not bind AF_LOCAL socket when connecting
Fix connection error for AF_LOCAL sockets.

Change-Id: I2e822f34e64434ccdbdd484f1647de2a8a6232d7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7166
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-12-11 18:09:42 +00:00