aboutsummaryrefslogtreecommitdiffstats
path: root/clients/window.c
Commit message (Collapse)AuthorAgeFilesLines
* Split into a core repository that only holds the core Wayland librariesKristian Høgsberg2011-02-141-1741/+0
|
* fix typo in window.cTim Wiederhake2011-02-111-1/+1
|
* window.c: Use eglGetProcAddress to look up extension functionsKristian Høgsberg2011-02-091-7/+15
|
* window.c: Include wayland-egl.h before EGL headers so we get the right platformKristian Høgsberg2011-02-091-3/+3
|
* Follow wayland-egl renamesKristian Høgsberg2011-02-071-9/+8
|
* Port window.c to use wayland-eglKristian Høgsberg2011-02-071-89/+53
|
* window: add null checksnobled2011-02-011-0/+30
| | | | | Also check for invalid parameters early on, so if we crash, we know *why* we crashed.
* add newlines in error messagesnobled2011-02-011-4/+4
|
* Add initial basic support for fullscreen surfacesKristian Høgsberg2011-01-281-17/+31
|
* compositor-x11: Handle keyboard focus correctly so we avoid stuck modifiersKristian Høgsberg2011-01-271-0/+1
|
* Fix new gcc 4.6 warningsKristian Høgsberg2011-01-251-3/+1
| | | | | | simple-client.c:156:10: warning: variable ‘ar’ set but not used [-Wunused-but-set-variable] etc.
* Replace gdk_pixbuf_unref with g_object_unrefDarxus@chaosreigns.com2011-01-251-4/+4
| | | | | Because gdk_pixbuf_unref is deprecated and for compatability with gdk-pixbuf 2.21.4.
* window.c: Make title not constKristian Høgsberg2011-01-251-2/+2
| | | | We now strdup it.
* Merge remote branch 'callum/master'Kristian Høgsberg2011-01-251-6/+13
|\ | | | | | | | | Conflicts: clients/window.h
| * Merge branch 'master' of git://anongit.freedesktop.org/waylandCallum Lowcay2011-01-221-44/+147
| |\ | | | | | | | | | | | | Conflicts: clients/window.h
| * | terminal: Window operationsCallum Lowcay2011-01-141-0/+13
| | | | | | | | | | | | | | | | | | | | | Implement OSC 1 (set window title), and some basic CSI t window operations. Signed-off-by: Callum Lowcay <callum@callumscode.com>
* | | initialise displayTim Wiederhake2011-01-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes valgrind: ==25178== Conditional jump or move depends on uninitialised value(s) ==25178== at 0x409E2C: display_create (window.c:1582) ==25178== by 0x407A43: main (terminal.c:2323) and ==13793== Conditional jump or move depends on uninitialised value(s) ==13793== at 0x40A2D1: display_handle_global (window.c:1504) ==13793== by 0x4E2C183: display_handle_global (wayland-client.c:281) ==13793== by 0x713FEE7: ffi_call_unix64 (in /usr/lib/libffi.so.5.0.10) ==13793== by 0x713FC83: ffi_call (in /usr/lib/libffi.so.5.0.10) ==13793== by 0x4E2C71A: wl_closure_invoke (connection.c:663) ==13793== by 0x4E2BB7B: wl_display_iterate (wayland-client.c:484) ==13793== by 0x4096CA: display_create (window.c:1664) ==13793== by 0x407A43: main (terminal.c:2321)
* | | free option contextTim Wiederhake2011-01-231-0/+1
| | |
* | | fix resizing at top/left borderTim Wiederhake2011-01-231-1/+2
| | |
* | | compositor crashes if window width or height is <= 0Tim Wiederhake2011-01-231-0/+6
| | |
* | | Remove unused bits of cairo codeKristian Høgsberg2011-01-211-8/+0
| | |
* | | Add an orange pop-up menu to test the new map_transient requestKristian Høgsberg2011-01-211-6/+80
| | |
* | | terminal: Just send the pty master fd to receive the selection.Kristian Høgsberg2011-01-211-8/+3
| |/ |/| | | | | LOL!!1
* | Use cairo_push_group() for all double buffering, drop window_copy_*()Kristian Høgsberg2011-01-211-24/+0
| |
* | Render selectionKristian Høgsberg2011-01-201-0/+5
| |
* | Use libxkbcommon #defines for modifiersKristian Høgsberg2011-01-191-1/+1
| |
* | Add proof-of-concept selection support to terminalKristian Høgsberg2011-01-191-0/+120
| | | | | | | | | | Next will be to support mouse selections so we can copy and paste something more interesting than just 'selection data'.
* | Pass input device and time in key_handler callbackKristian Høgsberg2011-01-191-2/+8
| | | | | | | | Move the modifiers to a input device getter function.
* | Use the global handler in dnd instead of custom drag_offer hookKristian Høgsberg2011-01-191-15/+1
| |
* | window: Add a catch-all global handler hookKristian Høgsberg2011-01-191-0/+10
| |
* | Check for cairo-egl instead of just cairo-glKristian Høgsberg2011-01-141-7/+7
|/
* Fix terminal resizingKristian Høgsberg2011-01-111-20/+27
| | | | | | | Get snapping to character grid working again, avoid crashes when attempting to resize below 1x1 character cell, only redraw when size actually changes. Also, rename window_get_child_rectangle() to window_get_child_allocation().
* Fix window.c build without cairo-glnobled2011-01-051-0/+5
|
* Update surface.attach and change surface.map to surface.map_toplevelKristian Høgsberg2010-12-171-73/+65
| | | | | | | The new map_toplevel() request no longer specifies a position and takes the size from the attached buffer. The attach request now takes a position relative to the top-left corner of the old buffer to let clients specify the relative position of the new buffer.
* When no DRM present, clients (window.c actually) now either exit orderly,Yuval Fledel2010-12-061-61/+71
| | | | | | or if that check is removed - crash (unsurprisingly). This patch relieves this assumption, and allow some clients (terminal, image, flower) to run in a non-DRM environment
* Add origin information to output.geometry eventKristian Høgsberg2010-12-011-3/+3
|
* Create socket in /var/run/user/${HOME}Kristian Høgsberg2010-12-011-3/+1
| | | | | Use the runtime dir from XDG Base Directory Specification for creating the socket in a directory only the user can read and write.
* Fix warnings from adding -Wall backKristian Høgsberg2010-12-011-6/+6
|
* Don't hardcode offered dnd types in window.cKristian Høgsberg2010-11-301-10/+8
|
* Made the window save the coordinates when being draged.Joel Teichroeb2010-11-301-8/+10
|
* wayland_client: rename wl_display_create to wl_display_connectBenjamin Franzke2010-11-291-1/+1
| | | | Avoid conflict when using wayland-{server,client} together.
* Define MULT outside the HAVE_CAIRO_GL #ifdefKristian Høgsberg2010-11-291-3/+3
|
* Some additional return value checkingDarxus2010-11-221-1/+4
|
* window: Don't call drag_offer_handler if it's NULLKristian Høgsberg2010-11-221-2/+4
| | | | Reported by canbaby@21cn.com.
* Function declares a pointer return, so return one.Bryce Harrington2010-11-221-4/+4
| | | | | | | | | | These two functions are just wrappers around display_create_*_surface but weren't forwarding along the result of those calls as is implied by their return value type. This fixes a compile-time warning. Signed-off-by: Bryce Harrington <bryce@canonical.com>
* Quell warning about potentially uninitialized variable 'surface'Bryce Harrington2010-11-221-0/+3
| | | | | | | In theory, it was possible for an undefined 'surface' to be passed to window_set_surface(). Instead, explicitly pass NULL. Signed-off-by: Bryce Harrington <bryce@canonical.com>
* Cleanup declared but unused variables.Bryce Harrington2010-11-221-2/+1
| | | | | | | Make was complaining about a bunch of unused variables that were being declared. Signed-off-by: Bryce Harrington <bryce@canonical.com>
* Bring gears example up to dateKristian Høgsberg2010-11-081-6/+16
| | | | Must have gears.
* Make sure there is a current context.Chia-I Wu2010-10-291-3/+17
| | | | | The context of a display is shared with the cairo device. cairo_acquire_device should be called whenever OpenGL calls are made.
* Use glTexSubImage to update the pixels.Chia-I Wu2010-10-291-3/+2
| | | | | glTexImage causes respecification. The DRM buffer a client renders to will be different from that used to create the wl_buffer.