Changeset 09c6389 in mainline


Ignore:
Timestamp:
2018-10-17T19:54:28Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7900e5d
Parents:
8ca4b602
git-author:
Maurizio Lombardi <m.lombardi85@…> (2018-10-17 19:54:28)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-17 19:54:28)
Message:

compositor: ignore "mouse button pressed" events when resizing/moving a window (#46)

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

    r8ca4b602 r09c6389  
    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.