Matthias Clasen
67c79563f3
Respect geometry hints
...
Only set cursors and start resizing if the geometry hints allow it.
Allow to 'shake loose' maximized windows.
2010-04-16 14:17:51 -05:00
Matthias Clasen
330d760a2d
Redo region handling
...
Rewrite the region determination to be more symmetric. And don't
constantly set cursors.
2010-04-16 14:17:51 -05:00
Matthias Clasen
6cb831b9ed
Make resize handles larger
...
There is now a ::decoration-resize-handle style property to control
the size of these handles; also clean up some confusion where the old
window->frame_width was used.
2010-04-16 14:17:51 -05:00
Cody Russell
4ef1a16536
remove decoration-button-size and ecoration-button-y-offset properties
2010-04-16 14:17:51 -05:00
Cody Russell
91b255034a
ellipsize client-side title labels
2010-04-16 14:17:51 -05:00
Cody Russell
d65909b168
change top/left/right/bottom properties to be just one border width property
2010-04-16 14:17:51 -05:00
Matthias Clasen
713996c69d
Make switching from and to csd work
2010-04-16 14:17:51 -05:00
Matthias Clasen
1ed0ac92bf
Add focus color
...
Redraw window frames on focus in and focus out and make
focused windows use the selection color for their frame.
2010-04-16 14:17:50 -05:00
Matthias Clasen
d2dae1b01d
Toggle the max button image
...
Show a different image in maximized state; this is common in window
manager themes.
2010-04-16 14:17:50 -05:00
Cody Russell
e13f21b458
avoid calling is_client_side_decorated() multiple times in one function
2010-04-16 14:17:50 -05:00
Cody Russell
80979520e3
gtk_window_button_press_event() return FALSE at the end
2010-04-16 14:17:50 -05:00
Cody Russell
e184fa85bf
unset GTK_CAN_FOCUS flag on min/max/close buttons
2010-04-16 14:17:50 -05:00
Cody Russell
e173e3f72b
tooltip text on min/max/close buttons
2010-04-16 14:17:50 -05:00
Cody Russell
aa0f5fb87d
fix oops
2010-04-16 14:17:50 -05:00
Cody Russell
d4c721a9e1
remove test code again
2010-04-16 14:17:50 -05:00
Cody Russell
cd5ede55c9
add support for window icons
2010-04-16 14:17:50 -05:00
Cody Russell
fe8ad4d746
hide and show min/max buttons based on GdmWMDecorations value
2010-04-16 14:17:50 -05:00
Cody Russell
ea7b05024e
check is_client_side_decorated() in ensure_title_box()
2010-04-16 14:17:50 -05:00
Cody Russell
f0c0032171
only update mouse cursor to non-arrow if window is resizable
2010-04-16 14:17:50 -05:00
Cody Russell
f5c141d746
no need for toggle logic in min_button_clicked()
2010-04-16 14:17:50 -05:00
Cody Russell
c59a059551
remove some temporary code
2010-04-16 14:17:50 -05:00
Cody Russell
a3ffbcacba
add widget names so they can be accessed from the theme
2010-04-16 14:17:50 -05:00
Cody Russell
4bba6ac660
fix title setting bug
2010-04-16 14:17:50 -05:00
Cody Russell
ceec85b195
fix GtkPlug to always force cs-decorations off
2010-04-16 14:17:50 -05:00
Cody Russell
0358e0d7f7
remove the rgba stuff for now for firefox; temp hack for is_client_side_decorated
2010-04-16 14:17:50 -05:00
Cody Russell
b1ad5235b9
check for both ->client_side_decorated && ->decorated; motion/click only when not maximized
2010-04-16 14:17:50 -05:00
Cody Russell
ad24eb34d5
remove unnecessary change
2010-04-16 14:17:50 -05:00
Cody Russell
3cb8bc456b
allocate bin.child's x-position and height by MAX(title height, box height)
2010-04-16 14:17:50 -05:00
Cody Russell
72c57c1b64
fix a mistake in gtkwindow.h
2010-04-16 14:17:50 -05:00
Cody Russell
52276a1402
add container::remove interface
2010-04-16 14:17:50 -05:00
Cody Russell
c284f256c7
button event handlers
2010-04-16 14:17:50 -05:00
Cody Russell
4a3a775aac
add buttons
2010-04-16 14:17:50 -05:00
Cody Russell
842e7a216e
remove frame event stuff
2010-04-16 14:17:50 -05:00
Cody Russell
cab5f6e0d8
cursor support
2010-04-16 14:17:50 -05:00
Cody Russell
0e6e52c19b
remove compute_child_allocation from GtkWindowClass
2010-04-16 14:17:50 -05:00
Cody Russell
50bcb86e64
differentiate between N edge and title in button_press_event
2010-04-16 14:17:49 -05:00
Cody Russell
0051be4ead
simple window resizing
2010-04-16 14:17:49 -05:00
Kristian Høgsberg
906020a222
Invalidate window on size_allocate so we redraw correctly
2010-04-16 14:17:49 -05:00
Cody Russell
c84c994a51
check for GDK_DECOR_BORDER before calculating frame size, use style properties for frame sizes
2010-04-16 14:17:49 -05:00
Kristian Høgsberg
e7a8c9da41
Move drawing to gtkstyle.c, use colors from style
2010-04-16 14:17:49 -05:00
Kristian Høgsberg
5d9a615c49
Offset path by half a pixel so we get a nice thin line.
2010-04-16 14:17:49 -05:00
Cody Russell
a741c53d23
check for -1 before setting
2010-04-16 14:17:49 -05:00
Cody Russell
f77ee8dfa6
fix warnings, remove unneeded code
2010-04-16 14:17:49 -05:00
Cody Russell
3bc6bb7632
remove #include "gtkwindow-decorate.h"
2010-04-16 14:17:49 -05:00
Cody Russell
8f7bcc1a44
remove gtkwindow-decorate.[ch]
2010-04-16 14:17:49 -05:00
Cody Russell
2e632ce7e2
put title label in an hbox
2010-04-16 14:17:49 -05:00
Cody Russell
5a6b67b522
remove some old stuff
2010-04-16 14:17:49 -05:00
Cody Russell
fbd4043137
fix sizing and other random changes
2010-04-16 14:17:49 -05:00
Cody Russell
f8f39cd397
temporary window painting
2010-04-16 14:17:49 -05:00
Cody Russell
00a9aaa68c
remove unnecessary event propagation from gtk_window_expose
2010-04-16 14:17:49 -05:00