Kristian Høgsberg
a018fb0dbf
compositor-drm: Exit if we failed to get drm master
...
We can do anything without drm master. Also log an error in case we
fail to drop it, which will be trouble for whoever we're switching to.
13 years ago
Kristian Høgsberg
5743010af0
xserver: Create WM window, handle client messages
13 years ago
Olivier Le Thanh Duong
643eac56e7
evdev: Correct warning on missing input device
13 years ago
Kristian Høgsberg
de13448c92
xserver: Just dup fd instead of two fcntls to get a non-O_CLOEXEC fd
...
Yeah, it's the same number of lines of code, but this actually checks
the error return.
13 years ago
Kristian Høgsberg
1760ebb236
xserver: Set DISPLAY for clients launched by the compositor
13 years ago
Kristian Høgsberg
ea093d4883
xserver: Don't set -logfile option, only available to root user
13 years ago
Kristian Høgsberg
92734c5673
tty: Leave tty in KD_GRAPHICS mode during vt switches
...
Part of the point of KD_GRAPHICS mode is that the kernel doesn't try
to restore the VT contents when we switch bach, but leaves that
to the user mode process. This avoids ugly flicker of text mode contents
before the compositor takes over.
13 years ago
Kristian Høgsberg
c5b9ddb610
compositor-drm: Fail, and fail early if we can't set up the tty
...
Typically a permissions problem. Weston should be setuid root or
be launched by a setuid helper.
13 years ago
Kristian Høgsberg
00513ab7cc
tty: Close tty fd on exit
13 years ago
Kristian Høgsberg
1201b75bec
tty: If no tty option is given, use stdin and make sure it's a vt
13 years ago
Richard Hughes
2f6219f127
Explicitly add GIO to the client libs
...
This prevents a build warning on Fedora 16 of:
undefined reference to symbol 'g_file_get_basename'
13 years ago
Kristian Høgsberg
ab5dacdac8
view: Make view compile again
13 years ago
Kristian Høgsberg
8e81df4503
Use new format codes
13 years ago
Kristian Høgsberg
62444800e1
window: Don't deref focus widget if there isn't one
13 years ago
Kristian Høgsberg
f0993f61c0
window: Remove a few unused struct fields
13 years ago
Kristian Høgsberg
b63235142d
window: Move focus widget to struct input
13 years ago
Kristian Høgsberg
831dd52aa0
window: Implement input device grabbing
...
With all input events going to widgets now, we can grab an input device
to a widget, so that all events are delivered to that widgets handlers.
This lets us implement the last bit of the menu behaviour, that is
the client side grabbing of events. The result is that we can now pop down
the menu when we receive clicks in the clients own windows and we
don't send motion and button events to other widgets.
13 years ago
Kristian Høgsberg
29af3ebce6
window: Make decorations just a widget
...
Woohoo, only took 25 commits of refactoring to get to this point.
13 years ago
Kristian Høgsberg
bb97700474
window: Get rid of the window child allocation concept
13 years ago
Kristian Høgsberg
27ff086b8e
window: Break widget grab before shell surface move or grab
13 years ago
Kristian Høgsberg
5e41f09752
wscreensaver: Use a widget and a redraw handler
13 years ago
Kristian Høgsberg
441338cb75
window: Keep widgets in a tree instead of a list
13 years ago
Kristian Høgsberg
30948989ee
window: Use surface coordinates for looking up widgets
13 years ago
Kristian Høgsberg
b67e94b170
window: Make resize and redraw handlers widget vfuncs
13 years ago
Kristian Høgsberg
5d12990dbe
window: Allocate and flush the window surface in window.c
...
No need to push this to the toolkit users.
13 years ago
Kristian Høgsberg
75bc667a70
window: Drop the window widget
...
It was just a temporary convenience for moving things over.
13 years ago
Kristian Høgsberg
cadd0f5cd9
clients/image: Delete old old key code
13 years ago
Kristian Høgsberg
9ca2d08fb0
window: Run deferred tasks before blocking for initial iteration
...
The first iteration of the while loop wouldn't run the deferred tasks
before blocking in epoll_wait(). Move things around so we do.
13 years ago
Kristian Høgsberg
bb901fac90
window: Return pointer type from widget enter handler
13 years ago
Kristian Høgsberg
5388080949
desktop-shell: Rename panel_widget to panel_launcher
13 years ago
Kristian Høgsberg
a8a0db3497
window: Move button handler to widget
13 years ago
Kristian Høgsberg
19dd1d7eb1
window: Use the window widget instead of adding a window sized widget
13 years ago
Kristian Høgsberg
87a57bbd73
window: Create a widget for the window, drop window motion handler
13 years ago
Kristian Høgsberg
5f190ef96a
window: Convert a few clients to use widget motion handler
13 years ago
Kristian Høgsberg
04e98344cf
window: Add a widget motion handler
13 years ago
Kristian Høgsberg
ab9e79ffc2
window: Remove window enter/leave handlers
13 years ago
Kristian Høgsberg
ac7619f3f4
dnd: Use a widget for enter/leave handling
13 years ago
Kristian Høgsberg
391649b0dc
window: Use widget enter/leave handlers for menu
13 years ago
Kristian Høgsberg
ee143236d7
window: Replace widget focus handler with a enter/leave handler pair
13 years ago
Kristian Høgsberg
21eabf60b0
window: Use display_exit() instead of exit() in window menu
13 years ago
Kristian Høgsberg
9a13dab8a9
window: Move widget focus handler to the widget
13 years ago
Kristian Høgsberg
c51f79954b
window: Rename item to widget
...
It's a widget.
13 years ago
Kristian Høgsberg
4f7dcd6eb1
window: Add a window menu
...
At least this gives us a way to close the toy toolkit clients.
13 years ago
Kristian Høgsberg
249713bbe0
Remove redundant glTexImage2D() call
...
When we later upload the cursor image with glTexImage2D(), that will unbind
the image just fine. No need for a NULL upload. Except that that doesn't
currently happen with mesa drivers, but the NULL upload is redundant either
way.
13 years ago
Kristian Høgsberg
c5e2376d3f
compositor: Damage below before attaching new buffer
13 years ago
Kristian Høgsberg
b3cca0a411
shell: Start implementing the popup surface type
...
This lands the basic behavior of the popup surface type, but there are still
a number of details to be worked out. Mainly there's a hardcoded timeout
to handle the case of releasing the popup button outside any of the
client windows, which triggers popup_end if it happens after the timeout.
Maybe we just need to add that as an argument, or we could add a new event
that fires in this case to let the client decide whether it ends the popup
or not.
13 years ago
Kristian Høgsberg
dade64968c
Move wl_data_device implementation to wayland-server
13 years ago
Kristian Høgsberg
faf1fee64f
Move default grab implementation to wayland-server
13 years ago
Kristian Høgsberg
9ddb826077
Use new grab api
13 years ago
Rob Bradford
0b17b8ec01
compositor: Don't try and destroy old pointer surface if it empty
...
If attach was called on wl_input_device with a nil buffer twice then the
second call would cause a segfault.
13 years ago