Ignore:
Timestamp:
2021-06-10T12:51:21Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Parents:
4b72e81
git-author:
Jiri Svoboda <jiri@…> (2021-06-09 18:51:04)
git-committer:
Jiri Svoboda <jiri@…> (2021-06-10 12:51:21)
Message:

Allow setting initial window position (instead of moving the window)

To reduce display artifacts. We can create the menu popup windows
in the correct place from the start. The same goes for regular
windows with specific placement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/display/include/types/display/wndparams.h

    r4b72e81 r1bebc906  
    4141typedef enum {
    4242        /** Popup window (capture events, no focus) */
    43         wndf_popup = 0x1
     43        wndf_popup = 0x1,
     44        /** Set specific initial window position */
     45        wndf_setpos = 0x2
    4446} display_wnd_flags_t;
    4547
     
    5658        /** Minimum size (when being resized) */
    5759        gfx_coord2_t min_size;
     60        /** Initial position (if flag wndf_setpos is set) */
     61        gfx_coord2_t pos;
    5862        /** Flags */
    5963        display_wnd_flags_t flags;
Note: See TracChangeset for help on using the changeset viewer.