Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 252d03c in mainline for uspace/lib/ui/src/wdecor.c


Ignore:
Timestamp:
2021-04-28T09:22:39Z (7 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
7470d97
Parents:
de227aba
Message:

Popping up a message, in text mode as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/wdecor.c

    rde227aba r252d03c  
    556556 * @param wdecor Window decoration
    557557 * @param pos_event Position event
    558  */
    559 void ui_wdecor_pos_event(ui_wdecor_t *wdecor, pos_event_t *event)
     558 * @return @c ui_claimed iff event was claimed
     559 */
     560ui_evclaim_t ui_wdecor_pos_event(ui_wdecor_t *wdecor, pos_event_t *event)
    560561{
    561562        gfx_coord2_t pos;
     
    571572                claim = ui_pbutton_pos_event(wdecor->btn_close, event);
    572573                if (claim == ui_claimed)
    573                         return;
     574                        return ui_claimed;
    574575        }
    575576
    576577        ui_wdecor_frame_pos_event(wdecor, event);
    577578
    578         if ((wdecor->style & ui_wds_titlebar) != 0)  {
     579        if ((wdecor->style & ui_wds_titlebar) != 0) {
    579580                if (event->type == POS_PRESS &&
    580                     gfx_pix_inside_rect(&pos, &geom.title_bar_rect))
     581                    gfx_pix_inside_rect(&pos, &geom.title_bar_rect)) {
    581582                        ui_wdecor_move(wdecor, &pos);
    582         }
     583                        return ui_claimed;
     584                }
     585        }
     586
     587        return ui_unclaimed;
    583588}
    584589
Note: See TracChangeset for help on using the changeset viewer.