Ignore:
Timestamp:
2018-10-17T14:20:36Z (6 years ago)
Author:
Maurizio Lombardi <mlombard@…>
Parents:
d24e987
Message:

compositor: ignore "mouse button pressed" events when resizing/moving a window

If you are moving a window on top of another and you click the
mouse's right button, the compositor brings the background window on top.
This interferes with the window moving operation, leaves
a weird empty rectangle on the screen and confuses the user.

This patch fixes the bug by forcing the compositor to ignore
"mouse button pressed" events until the pointer is released.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/compositor/compositor.c

    rd24e987 r2d93763a  
    17011701#endif
    17021702
    1703         if (bpress) {
     1703        if (bpress && !pointer->pressed) {
    17041704                pointer->btn_pos = pointer->pos;
    17051705                pointer->btn_num = bnum;
Note: See TracChangeset for help on using the changeset viewer.