Carsten Haitzler (The Rasterman) wrote:
wm needs to track both and determine which one takes precedence based
on policy and th en implement that rotation, if needed. policy is what
a wm implements - that's the nature of the beast. that policy may be
hard-coded in the wm or configuration for it.
I've been looking at existing window properties [1] to try and
understand the best way to do this.
option1: New atoms in the _NET_WM_STATE property.
- _NET_WM_STATE_LANDSCAPE
- _NET_WM_STATE_PORTRAIT
If neither is present for a given window, WM can choose (based on the
accelerometers). Both present is an error - or could be defined as leave
the window in it's current orientation.
option2: New property.
_NET_WM_ORIENTATION
0 = Either / WM decides
1 = Landscape
2 = Portrait
Thoughts?
http://www.youtube.com/watch?v=abNsVyYTSkU
OT - but I'm struggling with e's xnest.sh script:
xhost +
su newuser
Xnest -ac :1 &
env DISPLAY=":1" enlightenment_start &
works, but:
xhost +
su newuser
/data/programming/e17/e17_src/e/xnest.sh
doesn't. Initially it ran through e's firstrun wizard in an xnest, then
crashed - now it dies on start. I've attached the xnest.sh output - any
ideas?
Dave
[1] http://standards.freedesktop.org/wm-spec/1.4/ar01s05.html
newu...@dougal:/data/programming/e17/logo-0.0.1$
/data/programming/e17/e17_src/e/xnest.sh
[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing
from list!
(EE) config/hal: NewInputDeviceRequest failed (2)
(EE) config/hal: NewInputDeviceRequest failed (2)
(EE) config/hal: NewInputDeviceRequest failed (2)
(EE) config/hal: NewInputDeviceRequest failed (2)
(EE) config/hal: NewInputDeviceRequest failed (2)
(EE) config/hal: NewInputDeviceRequest failed (2)
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
[Thread debugging using libthread_db enabled]
ESTART: 0.00000 [0.00000] - begin
ESTART: 0.00010 [0.00010] - signals done
ESTART: 0.00014 [0.00004] - determine prefix
DYNAMIC DETERMINED PREFIX: /opt/e17
ESTART: 0.00034 [0.00020] - prefix done
ESTART: 0.00037 [0.00003] - eina init
[New Thread 0x7f440ce2c710 (LWP 25665)]
ESTART: 0.01835 [0.01798] - intl init
ESTART: 0.01840 [0.00005] - parse args
ESTART: 0.01841 [0.00001] - arg parse done
ESTART: 0.01845 [0.00003] - ecore init
ESTART: 0.02113 [0.00268] - ecore_file init
ESTART: 0.02128 [0.00015] - more ecore
ESTART: 0.02129 [0.00001] - x connect
Xlib: extension "DPMS" missing on display ":1.0".
Xlib: extension "RANDR" missing on display ":1.0".
ESTART: 0.02402 [0.00273] - ecore_con
ESTART: 0.02432 [0.00030] - xinerama
E17 INIT: XINERAMA CHOSEN: [0], 1080x675+0+0
ESTART: 0.02665 [0.00233] - x hints
ESTART: 0.02702 [0.00037] - x hints done
ESTART: 0.02703 [0.00001] - ecore_evas init
ESTART: 0.02715 [0.00012] - test done
ESTART: 0.02716 [0.00001] - efreet
ESTART: 0.02731 [0.00015] - efreet done
ESTART: 0.02732 [0.00001] - configure
ESTART: 0.02738 [0.00006] - dirs
ESTART: 0.02746 [0.00008] - filereg
ESTART: 0.02747 [0.00001] - config
ESTART: 0.02906 [0.00159] - scale
ESTART: 0.02915 [0.00008] - pointer
ESTART: 0.02916 [0.00002] - path
ESTART: 0.02922 [0.00006] - ipc
INFO: E_IPC_SOCKET=/tmp/enlightenment-system/disp-:1.0-25665
ESTART: 0.02954 [0.00031] - font
ESTART: 0.02957 [0.00004] - theme
ESTART: 0.03629 [0.00672] - intl post
ESTART: 0.04364 [0.00735] - move/resize info
ESTART: 0.04374 [0.00009] - splash
RUN INIT: /opt/e17/lib/enlightenment/utils/enlightenment_init
'/opt/e17/share/enlightenment/data/themes/default.edj' '1' '0' 'Enlightenment'
'0.16.999.062'
Xlib: extension "DPMS" missing on display ":1.0".
Xlib: extension "RANDR" missing on display ":1.0".
E17 INIT: XINERAMA CHOSEN: [0], 1080x675+0+0
Program received signal SIGUSR2, User defined signal 2.
[Switching to Thread 0x7f440ce2c710 (LWP 25665)]
0x00007f4407b0e8b0 in __pause_nocancel () from /lib/libpthread.so.0
#0 0x00007f4407b0e8b0 in __pause_nocancel () from /lib/libpthread.so.0
#1 0x000000000042e626 in main ()
The program is running. Exit anyway? (y or n) [answered Y; input not from
terminal]
newu...@dougal:/data/programming/e17/logo-0.0.1$ [dix] Could not init font path
element /usr/share/fonts/X11/cyrillic, removing from list!
(EE) XKB: No components provided for device Virtual core keyboard
_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community