Changeset 66a408f7 in mainline


Ignore:
Timestamp:
2020-06-17T15:10:20Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5271e4c
Parents:
b7eea3c9
Message:

Do not resize non-resizable windows

Location:
uspace/lib/gui
Files:
2 edited

Legend:

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

    rb7eea3c9 r66a408f7  
    309309                    (event.hpos >= width - border_thickness - close_thickness);
    310310
    311                 bool isresize = true;
     311                bool isresize = widget->window->is_resizable;
    312312                display_wnd_rsztype_t rsztype = 0;
    313313
     
    670670        win->is_main = flags & WINDOW_MAIN;
    671671        win->is_decorated = flags & WINDOW_DECORATED;
     672        win->is_resizable = flags & WINDOW_RESIZEABLE;
    672673        win->is_focused = true;
    673674        prodcons_initialize(&win->events);
     
    885886        window_event_t *event;
    886887
     888        if (!win->is_resizable)
     889                return;
     890
    887891        event = (window_event_t *) calloc(1, sizeof(window_event_t));
    888892        if (event == NULL)
  • uspace/lib/gui/window.h

    rb7eea3c9 r66a408f7  
    5252        bool is_decorated; /**< True if the window decorations should be rendered. */
    5353        bool is_focused; /**< True for the top level window of the desktop. */
     54        bool is_resizable; /**< True if window is resizable */
    5455        char *caption; /**< Text title of the window header. */
    5556        display_t *display; /**< Display service */
Note: See TracChangeset for help on using the changeset viewer.