mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-06 11:10:24 +00:00
The decorator's detection of the hovered window element was inaccurate, which resulted in "jumping" windows in some situations, ultimately caused by a combination of three different mechanisms. First, when moving the pointer into the area of a window, the decorator would detect the hovering of the left border whenever the distance of the pointer from the border was less than the half of the theme texture (e.g., 64x64 pixels for the default theme). However, if the left border margin is set to a small value (e.g., 1), there is an overlap of the sensitive resize border area and the content. Hence, chances were quite high that - when moving the pointer from the left into the window - the hover report would contain the hovering of the left border. Second, the window manager tries to hide pointer movements from the decorator if possible. It informs the decorator of the pointer position if any decoration is hovered or if a new window is hovered. But it does not expose pointer movements within a window to the decorator. For this reason, the decorator would not update the hover report as long as the pointer stays within a once hovered window. In the situation described above, the hover report would still contain the stale information about the hovering of the left resize border. Third, when the user clicks on the window, the decorator examines the most recent hover report and - in the situation described above - finds the left border hovered. Consequently, it initiates a window-drag operation. While resizing the window with the left border, the window layouter pins the right border of the window to its current position. All window-size changes of the client will be applied towards the left (dragged) border. In the case of the top view, which continuously resizes the window by itself, the window would "jump". In reality, it actually tries to respond an interactive resize operation. The window layouter cannot guess that the client is not responding to window layouter's resize request but is acting independently. This patch fixes the jumping window problem for the case where the pointer hovers the overlapping area of the resize border and the content. However, when trying the to interactively resize the top window via the bottom-left corner, the "jumping" can still be observed. Fixes #3303
This directory is a source-code repository containing Genode-specific services and applications. In contrast to the components that come with the 'os' repository, programs contained in 'gems' are able to leverage the functionalities provided by higher-level repositories such as 'libports'. To use the 'gems' repository, make sure to also add those repositories to your build configuraion.