Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/window.h

    r6d5e378 r62fbb7e  
    4747#include "widget.h"
    4848
    49 typedef struct window {
     49struct window {
    5050        bool is_main; /**< True for the main window of the application. */
    5151        bool is_decorated; /**< True if the window decorations should be rendered. */
     52        bool is_focused; /**< True for the top level window of the desktop. */
    5253        char *caption; /**< Text title of the window header. */
    5354        async_sess_t *isess; /**< Input events from compositor. */
     
    5960        fibril_mutex_t guard; /**< Mutex guarding window surface. */
    6061        surface_t *surface; /**< Window surface shared with compositor. */
    61 } window_t;
     62};
    6263
    6364/**
     
    6566 * If the window is declared as main, its closure causes termination of the
    6667 * whole application. Note that opened window does not have any surface yet. */
    67 extern window_t *window_open(char *, bool, bool, const char *);
     68extern window_t *window_open(const char *, bool, bool, const char *);
    6869
    6970/**
     
    7273 * and to paint themselves on the new surface (top-bottom order). Should be
    7374 * called also after opening new window to obtain surface. */
    74 extern void window_resize(window_t *, sysarg_t, sysarg_t);
     75extern void window_resize(window_t *, sysarg_t, sysarg_t, sysarg_t, sysarg_t,
     76    window_placement_flags_t);
    7577
    7678/**
Note: See TracChangeset for help on using the changeset viewer.