Pekka Paalanen
57cd0ed916
wscreensaver: get decorations back
...
In the great toytoolkit widget revolution, wscreensaver demo mode lost
its window decorations. Bring them back.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Pekka Paalanen
4d733ee246
shell: respawn desktop-shell if it dies
...
If the desktop-shell client goes away for any reason, respawn it. To
avoid harmful looping, limit the respawning to 5 times within 30
seconds, and then give up.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Kristian Høgsberg
39d908e63a
tty: Open a new vt if not running on a VT
...
This is typically when launcing from a pty such as an X (or Wayland)
terminal or from an ssh session. Opening a new vt typically requires root
priviledges, so weston must be setuid root or laucnhed as root for this
to work.
13 years ago
Pekka Paalanen
0bd892750d
window: remove duplicate widget_resize_handler_t
...
Fixes the following build failure:
In file included from window.c:58:0:
window.h:194:16: error: redefinition of typedef 'widget_resize_handler_t'
window.h:178:16: note: previous declaration of 'widget_resize_handler_t' was here
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Kristian Høgsberg
0690da60d4
compositor: Install a SEGV handler to try and clean up the VT if we crash
13 years ago
Kristian Høgsberg
353e57f908
tty: Fix order of VT ack/release ioctls and the vt handler
...
We can only set up once we've acquired the VT and we shouldn't release the
VT until we've cleaned up. Before we would release the VT first, and then
race to drop drm master as X tried to get drm master. Which would kill X.
13 years ago
Kristian Høgsberg
23a47a80e2
evdev: Drop noisy debug messages on vt swtich
13 years ago
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