summaryrefslogtreecommitdiff
path: root/shared/frame.c
Commit message (Collapse)AuthorAgeFilesLines
* cairo-util: return theme location from frame_touch_downDerek Foreman2015-12-081-8/+9
| | | | | | | | I'll be using this in a follow up patch that adds touch input to weston's wayland backend. Reviewed-by: Daniel Stone <daniels@collabora.com> Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
* shared: Update boilerplate from MIT X11 license to MIT Expat licenseBryce Harrington2015-06-151-16/+19
|
* clients: Maximize window when double touch on title barXiong Zhang2014-09-221-0/+49
| | | | Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
* clients: Maximize window when double click on title barXiong Zhang2014-09-041-0/+31
| | | | | Signed-off-by: Xiong Zhang <panda0626@gmail.com> Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* cairo-util: Draw solid titlebar for frames with only buttonsBoyan Ding2014-08-191-1/+1
| | | | | | | | Previously geometry was changed to leave space for titlebar if a frame has only buttons but no title. This patch fixes theme_render_frame to avoid transparent titlebar. Signed-off-by: Boyan Ding <stu_dby@126.com>
* cairo-util: Set geometry_dirty in frame_set_titleBoyan Ding2014-07-051-0/+1
| | | | | | | | Title can decide the geometry of a frame because it may affect the existence of titlebar, so setting geometry_dirty in frame_set_title for potential change. Signed-off-by: Boyan Ding <stu_dby@126.com>
* cairo-util: Fix geometry for frames with buttons but without titleBoyan Ding2014-07-051-2/+2
| | | | | | | | | | | | There exist frames which have buttons without title such as a simple X application piped through xwayland which doesn't specify a title. We draw the title bar with buttons, but hide it under the window because geometry thinks a window needs titlebar only if it has title. This patch change the condition, making it titlebar is needed if a frame has title or has button(s), which makes more sense. Signed-off-by: Boyan Ding <stu_dby@126.com>
* xdg-shell: Add set_margin requestJasper St. Pierre2014-02-061-0/+8
| | | | | | This is used to figure out the size of "invisible" decorations, which we'll use to better know the visible extents of the surface, which we can use for constraining, titlebars, and more.
* shared/frame: NULL check before attempting to derefU. Artie Eoff2014-01-191-7/+6
| | | | Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* shared/frame: fix potential memory leak in frame_createU. Artie Eoff2014-01-191-18/+25
| | | | | | | | | | | | | In frame_create, we need to destroy any frame buttons created in preceding calls to frame_button_create during the function execution if any of the successive calls to frame_button_create fail. This has minimal severity since most, if not all, cases in frame_button_create that result in a fail (i.e. NULL result) means a program is OOM and the program will have to exit/abort anyway. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* cairo-util: Rework frame button handlingJason Ekstrand2013-11-071-41/+115
| | | | | | | | | This makes button handling more correct concerning drags. Also, frame_pointer_button returns the original button location in the case of a release. This makes filtering of button events much easier for users of the cair-util frame code. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
* window.c: Don't put titlebars on menu windowsKristian Høgsberg2013-10-231-14/+26
|
* Use cairo-util frame in tinytoolkitJason Ekstrand2013-10-141-0/+92
| | | | Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
* Add decoration frame support to cairo-utilJason Ekstrand2013-10-131-0/+670
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>